aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorPaul Eggert2002-03-23 06:47:22 +0000
committerPaul Eggert2002-03-23 06:47:22 +0000
commit6461c63615a17d10b5b190f1c4f10b03edc2ef10 (patch)
tree6050a3794213b09b1897d131517ce2ef3ac13dfe /admin
parent6e34ec2973c0a070180512e36cd9431742f19602 (diff)
downloademacs-6461c63615a17d10b5b190f1c4f10b03edc2ef10.tar.gz
emacs-6461c63615a17d10b5b190f1c4f10b03edc2ef10.zip
(PRUNED): Avoid "head -1" and "tail +2", as POSIX 1003.1-2001
disallows both usages.
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/quick-install-emacs8
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/quick-install-emacs b/admin/quick-install-emacs
index 947f031c1e5..fa423a5dc6e 100755
--- a/admin/quick-install-emacs
+++ b/admin/quick-install-emacs
@@ -131,7 +131,7 @@ fi
131 131
132CONFIG_STATUS="$BUILD/config.status" 132CONFIG_STATUS="$BUILD/config.status"
133function get_config_var () { 133function get_config_var () {
134 if ! sed -n "s/^s\(.\)@$1@\1\(.*\)\1.*$/\2/p" $CONFIG_STATUS | head -1 | grep '' 134 if ! sed -n "s/^s\(.\)@$1@\1\(.*\)\1.*$/\2/p" $CONFIG_STATUS | sed q | grep ''
135 then 135 then
136 echo 1>&2 "$me: $1: Configuration variable not found in $CONFIG_STATUS" 136 echo 1>&2 "$me: $1: Configuration variable not found in $CONFIG_STATUS"
137 exit 4 137 exit 4
@@ -164,15 +164,15 @@ maybe_mkdir "$DST_INFO"
164 164
165PRUNED="" 165PRUNED=""
166if test x"$PRUNE" != xno; then 166if test x"$PRUNE" != xno; then
167 for D in `ls -1t $BUILD/etc/DOC-* | tail +2`; do 167 for D in `ls -1t $BUILD/etc/DOC-* | sed 1d`; do
168 echo $REMOVE_CMD $D 168 echo $REMOVE_CMD $D
169 PRUNED="$PRUNED $D" 169 PRUNED="$PRUNED $D"
170 done 170 done
171 for D in `ls -1t $BUILD/src/emacs-$VERSION.* | tail +2`; do 171 for D in `ls -1t $BUILD/src/emacs-$VERSION.* | sed 1d`; do
172 echo $REMOVE_CMD $D 172 echo $REMOVE_CMD $D
173 PRUNED="$PRUNED $D" 173 PRUNED="$PRUNED $D"
174 done 174 done
175 for D in `ls -1t $BUILD/lib-src/fns-* | tail +2`; do 175 for D in `ls -1t $BUILD/lib-src/fns-* | sed 1d`; do
176 echo $REMOVE_CMD $D 176 echo $REMOVE_CMD $D
177 PRUNED="$PRUNED $D" 177 PRUNED="$PRUNED $D"
178 done 178 done