~rkta/quiltutils

d281de4b763817f4335500786fb4d9788500198a — Rene Kita 10 months ago 4910229
Test early that necessary files exist
2 files changed, 4 insertions(+), 1 deletions(-)

M qheaders
M qseries
M qheaders => qheaders +2 -0
@@ 22,6 22,8 @@ done
pdir="${series%/*}"
from=${def_from}

test -f "$series" || exit 1

exec 3>&0
while read -r p
do

M qseries => qseries +2 -1
@@ 15,7 15,8 @@ die()

pdir="${1:-patches}"

test -e "$pdir"/series && die "series file exists!"
test -d "$pdir" || die "Patches directory not found!"
test -e "$pdir"/series && die "Series file exists!"

{ find "$pdir" -type f \! \( -name '*~' -o -name '*.orig' \) |
	while read -r f