From 37a2db8a6c07feb26db4df7319c75676d1e98903 Mon Sep 17 00:00:00 2001 From: jmc Date: Mon, 22 Jan 2001 07:03:44 +0000 Subject: [PATCH] Change pipeline in sets building so proper error detection for each stage can be detected. This way sets stop building at the exact file that doesn't exist rather than continuing. --- distrib/sets/maketars | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/distrib/sets/maketars b/distrib/sets/maketars index 17004e9f901b..3cef33db5098 100755 --- a/distrib/sets/maketars +++ b/distrib/sets/maketars @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: maketars,v 1.14 2000/10/01 22:49:05 thorpej Exp $ +# $NetBSD: maketars,v 1.15 2001/01/22 07:03:44 jmc Exp $ # # Make release tar files for some or all lists. Usage: # maketars [-b] [-x] [-a arch] [-m machine] [-s setsdir] [-d destdir] \ @@ -77,10 +77,11 @@ if [ -z "$dest" ]; then exit 1 fi +trap 'rm -f ${dest}/tmp/flist' 0 +set -e for setname in $lists; do out=$setname.tgz echo "making $out" - sh $setd/makeflist -a $arch -m $machine -s $setd $setname | - (cd $dest ; pax -w -d) | - gzip -9 > ${tars}/$out + sh $setd/makeflist -a $arch -m $machine -s $setd $setname > ${dest}/tmp/flist + (cd $dest ; pax -w -d -z < ${dest}/tmp/flist) > ${tars}/$out done