Mercurial > emacs
changeset 43410:1109a8546104
Port to POSIX 1003.1-2001, which doesn't allow "head -1".
"sed q" is a portable equivalent to plain "head -1".
author | Paul Eggert <eggert@twinsun.com> |
---|---|
date | Tue, 19 Feb 2002 06:49:08 +0000 |
parents | ba5ec627d055 |
children | 796cc474ce32 |
files | make-dist |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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}'"