From: Paul Eggert Date: Tue, 19 Feb 2002 06:45:05 +0000 (+0000) Subject: Port to POSIX 1003.1-2001, which doesn't allow "head -1". X-Git-Tag: emacs-21.2~71 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=28b1b676f2e0b992b3a3568227a73248b2e819d3;p=emacs.git Port to POSIX 1003.1-2001, which doesn't allow "head -1". "sed q" is a portable equivalent to plain "head -1". --- diff --git a/make-dist b/make-dist index b6dea4feb4e..abce8f49d4e 100755 --- a/make-dist +++ b/make-dist @@ -231,7 +231,7 @@ then 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; } @@ -266,7 +266,9 @@ echo "Making lisp/MANIFEST" 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}'"