1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

Port to POSIX 1003.1-2001, which doesn't allow "head -1".

"sed q" is a portable equivalent to plain "head -1".
This commit is contained in:
Paul Eggert 2002-02-19 06:49:08 +00:00
parent 5be86f5441
commit a8a8fcfa23

View file

@ -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; }
@ -268,7 +268,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}'"