Commit a8a8fcfa authored by Paul Eggert's avatar Paul Eggert
Browse files

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

"sed q" is a portable equivalent to plain "head -1".
parent 5be86f54
......@@ -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}'"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment