Mercurial > emacs
changeset 44112:271a4f9d12fc
(PRUNED): Avoid "head -1" and "tail +2", as POSIX 1003.1-2001
disallows both usages.
author | Paul Eggert <eggert@twinsun.com> |
---|---|
date | Sat, 23 Mar 2002 06:47:22 +0000 |
parents | 3599777a5982 |
children | 4b1f649a4526 |
files | admin/quick-install-emacs |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/admin/quick-install-emacs Sat Mar 23 00:41:00 2002 +0000 +++ b/admin/quick-install-emacs Sat Mar 23 06:47:22 2002 +0000 @@ -131,7 +131,7 @@ CONFIG_STATUS="$BUILD/config.status" function get_config_var () { - if ! sed -n "s/^s\(.\)@$1@\1\(.*\)\1.*$/\2/p" $CONFIG_STATUS | head -1 | grep '' + if ! sed -n "s/^s\(.\)@$1@\1\(.*\)\1.*$/\2/p" $CONFIG_STATUS | sed q | grep '' then echo 1>&2 "$me: $1: Configuration variable not found in $CONFIG_STATUS" exit 4 @@ -164,15 +164,15 @@ PRUNED="" if test x"$PRUNE" != xno; then - for D in `ls -1t $BUILD/etc/DOC-* | tail +2`; do + for D in `ls -1t $BUILD/etc/DOC-* | sed 1d`; do echo $REMOVE_CMD $D PRUNED="$PRUNED $D" done - for D in `ls -1t $BUILD/src/emacs-$VERSION.* | tail +2`; do + for D in `ls -1t $BUILD/src/emacs-$VERSION.* | sed 1d`; do echo $REMOVE_CMD $D PRUNED="$PRUNED $D" done - for D in `ls -1t $BUILD/lib-src/fns-* | tail +2`; do + for D in `ls -1t $BUILD/lib-src/fns-* | sed 1d`; do echo $REMOVE_CMD $D PRUNED="$PRUNED $D" done