diff options
| author | Paul Eggert | 2002-02-19 06:49:08 +0000 |
|---|---|---|
| committer | Paul Eggert | 2002-02-19 06:49:08 +0000 |
| commit | a8a8fcfa23407c8afe1be46996f834eef44762b4 (patch) | |
| tree | 139ff3d547fdbe71aae0e1cd3782bbaf0f56ffcc /make-dist | |
| parent | 5be86f5441c51de5039cf9117dfefed33a1ed19c (diff) | |
| download | emacs-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-x | make-dist | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -231,7 +231,7 @@ then | |||
| 231 | fi | 231 | fi |
| 232 | 232 | ||
| 233 | ### Make sure configure is newer than configure.in. | 233 | ### Make sure configure is newer than configure.in. |
| 234 | if [ "x`ls -t configure configure.in | head -1`" != "xconfigure" ]; then | 234 | if [ "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 | ||
| 273 | echo "Creating staging directory: \`${tempparent}'" | 275 | echo "Creating staging directory: \`${tempparent}'" |
| 274 | 276 | ||