aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-02-15 16:19:57 -0800
committerPaul Eggert2011-02-15 16:19:57 -0800
commit7127b760aed65cd08fbba67b8ad14f1840532b45 (patch)
tree5bddc56675bf388e47b95381a67cb0614817553c
parentca6ddb88b58e06b872912a8941ce96dad66da54f (diff)
downloademacs-7127b760aed65cd08fbba67b8ad14f1840532b45.tar.gz
emacs-7127b760aed65cd08fbba67b8ad14f1840532b45.zip
* install-sh: Update to scriptversion 2011-01-19.21.
-rw-r--r--ChangeLog2
-rwxr-xr-xinstall-sh23
2 files changed, 15 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index e5b3b2e8b08..60c7b92a18e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
2 2
3 Merge from gnulib. 3 Merge from gnulib.
4 4
5 * install-sh: Update to scriptversion 2011-01-19.21.
6
5 2011-02-13 Bruno Haible <bruno@clisp.org> 7 2011-02-13 Bruno Haible <bruno@clisp.org>
6 8
7 Consistent macro naming for macros that use GCC __attribute__. 9 Consistent macro naming for macros that use GCC __attribute__.
diff --git a/install-sh b/install-sh
index 3f83ce9b555..a9244eb0786 100755
--- a/install-sh
+++ b/install-sh
@@ -1,7 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2# install - install a program, script, or datafile 2# install - install a program, script, or datafile
3 3
4scriptversion=2010-02-06.18; # UTC 4scriptversion=2011-01-19.21; # UTC
5 5
6# This originates from X11R5 (mit/util/scripts/install.sh), which was 6# This originates from X11R5 (mit/util/scripts/install.sh), which was
7# later released in X11R6 (xc/config/util/install.sh) with the 7# later released in X11R6 (xc/config/util/install.sh) with the
@@ -156,6 +156,10 @@ while test $# -ne 0; do
156 -s) stripcmd=$stripprog;; 156 -s) stripcmd=$stripprog;;
157 157
158 -t) dst_arg=$2 158 -t) dst_arg=$2
159 # Protect names problematic for `test' and other utilities.
160 case $dst_arg in
161 -* | [=\(\)!]) dst_arg=./$dst_arg;;
162 esac
159 shift;; 163 shift;;
160 164
161 -T) no_target_directory=true;; 165 -T) no_target_directory=true;;
@@ -186,6 +190,10 @@ if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
186 fi 190 fi
187 shift # arg 191 shift # arg
188 dst_arg=$arg 192 dst_arg=$arg
193 # Protect names problematic for `test' and other utilities.
194 case $dst_arg in
195 -* | [=\(\)!]) dst_arg=./$dst_arg;;
196 esac
189 done 197 done
190fi 198fi
191 199
@@ -232,9 +240,9 @@ fi
232 240
233for src 241for src
234do 242do
235 # Protect names starting with `-'. 243 # Protect names problematic for `test' and other utilities.
236 case $src in 244 case $src in
237 -*) src=./$src;; 245 -* | [=\(\)!]) src=./$src;;
238 esac 246 esac
239 247
240 if test -n "$dir_arg"; then 248 if test -n "$dir_arg"; then
@@ -256,12 +264,7 @@ do
256 echo "$0: no destination specified." >&2 264 echo "$0: no destination specified." >&2
257 exit 1 265 exit 1
258 fi 266 fi
259
260 dst=$dst_arg 267 dst=$dst_arg
261 # Protect names starting with `-'.
262 case $dst in
263 -*) dst=./$dst;;
264 esac
265 268
266 # If destination is a directory, append the input filename; won't work 269 # If destination is a directory, append the input filename; won't work
267 # if double slashes aren't ignored. 270 # if double slashes aren't ignored.
@@ -389,7 +392,7 @@ do
389 392
390 case $dstdir in 393 case $dstdir in
391 /*) prefix='/';; 394 /*) prefix='/';;
392 -*) prefix='./';; 395 [-=\(\)!]*) prefix='./';;
393 *) prefix='';; 396 *) prefix='';;
394 esac 397 esac
395 398
@@ -407,7 +410,7 @@ do
407 410
408 for d 411 for d
409 do 412 do
410 test -z "$d" && continue 413 test X"$d" = X && continue
411 414
412 prefix=$prefix$d 415 prefix=$prefix$d
413 if test -d "$prefix"; then 416 if test -d "$prefix"; then