summaryrefslogtreecommitdiff
path: root/make-dist
diff options
context:
space:
mode:
authorPaul Eggert <eggert@twinsun.com>2002-02-19 06:49:08 +0000
committerPaul Eggert <eggert@twinsun.com>2002-02-19 06:49:08 +0000
commit71b692575f932256c8d95c3f8c84f93c4da8366c (patch)
tree1b8799b44f02a424b23f8b3a5527c82209bf866a /make-dist
parenta082bae7c73bcee864f99e96e592b643436403e5 (diff)
downloademacs-71b692575f932256c8d95c3f8c84f93c4da8366c.tar.gz
Port to POSIX 1003.1-2001, which doesn't allow "head -1".
"sed q" is a portable equivalent to plain "head -1".
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist6
1 files changed, 4 insertions, 2 deletions
diff --git a/make-dist b/make-dist
index f5f2783419e..5c993a19cfd 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; }
@@ -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}'"