# HG changeset patch # User Paul Eggert # Date 1014101348 0 # Node ID 1109a854610416d67b3b5bedf4d5f0e4ca045354 # Parent ba5ec627d0553542c3b7b26b7198deee21bb7ebb Port to POSIX 1003.1-2001, which doesn't allow "head -1". "sed q" is a portable equivalent to plain "head -1". diff -r ba5ec627d055 -r 1109a8546104 make-dist --- a/make-dist Mon Feb 18 23:45:18 2002 +0000 +++ b/make-dist Tue Feb 19 06:49:08 2002 +0000 @@ -231,7 +231,7 @@ fi ### Make sure configure is newer than configure.in. -if [ "x`ls -t configure configure.in | head -1`" != "xconfigure" ]; then +if [ "x`ls -t configure configure.in | sed q`" != "xconfigure" ]; then echo "\`./configure.in' is newer than \`./configure'" >&2 echo "Running autoconf" >&2 autoconf || { x=$?; echo Autoconf FAILED! >&2; exit $x; } @@ -268,7 +268,9 @@ files="$files $thisdir" fi done - head -1 $files | grep '^;' | sed -e 's/;;; //' | sort > MANIFEST) + for file in $files + do sed -n 's/^;;; //p; q' $file + done | sort > MANIFEST) echo "Creating staging directory: \`${tempparent}'"