aboutsummaryrefslogtreecommitdiffstats
path: root/make-dist
diff options
context:
space:
mode:
authorPaul Eggert2002-02-19 06:49:08 +0000
committerPaul Eggert2002-02-19 06:49:08 +0000
commita8a8fcfa23407c8afe1be46996f834eef44762b4 (patch)
tree139ff3d547fdbe71aae0e1cd3782bbaf0f56ffcc /make-dist
parent5be86f5441c51de5039cf9117dfefed33a1ed19c (diff)
downloademacs-a8a8fcfa23407c8afe1be46996f834eef44762b4.tar.gz
emacs-a8a8fcfa23407c8afe1be46996f834eef44762b4.zip
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
231fi 231fi
232 232
233### Make sure configure is newer than configure.in. 233### Make sure configure is newer than configure.in.
234if [ "x`ls -t configure configure.in | head -1`" != "xconfigure" ]; then 234if [ "x`ls -t configure configure.in | sed q`" != "xconfigure" ]; then
235 echo "\`./configure.in' is newer than \`./configure'" >&2 235 echo "\`./configure.in' is newer than \`./configure'" >&2
236 echo "Running autoconf" >&2 236 echo "Running autoconf" >&2
237 autoconf || { x=$?; echo Autoconf FAILED! >&2; exit $x; } 237 autoconf || { x=$?; echo Autoconf FAILED! >&2; exit $x; }
@@ -268,7 +268,9 @@ echo "Making lisp/MANIFEST"
268 files="$files $thisdir" 268 files="$files $thisdir"
269 fi 269 fi
270 done 270 done
271 head -1 $files | grep '^;' | sed -e 's/;;; //' | sort > MANIFEST) 271 for file in $files
272 do sed -n 's/^;;; //p; q' $file
273 done | sort > MANIFEST)
272 274
273echo "Creating staging directory: \`${tempparent}'" 275echo "Creating staging directory: \`${tempparent}'"
274 276