From 28b1b676f2e0b992b3a3568227a73248b2e819d3 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 19 Feb 2002 06:45:05 +0000 Subject: [PATCH] Port to POSIX 1003.1-2001, which doesn't allow "head -1". "sed q" is a portable equivalent to plain "head -1". --- make-dist | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}'" -- 2.39.2