diff options
| author | Paul Eggert | 2011-02-15 16:19:57 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-15 16:19:57 -0800 |
| commit | 7127b760aed65cd08fbba67b8ad14f1840532b45 (patch) | |
| tree | 5bddc56675bf388e47b95381a67cb0614817553c | |
| parent | ca6ddb88b58e06b872912a8941ce96dad66da54f (diff) | |
| download | emacs-7127b760aed65cd08fbba67b8ad14f1840532b45.tar.gz emacs-7127b760aed65cd08fbba67b8ad14f1840532b45.zip | |
* install-sh: Update to scriptversion 2011-01-19.21.
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rwxr-xr-x | install-sh | 23 |
2 files changed, 15 insertions, 10 deletions
| @@ -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 | ||
| 4 | scriptversion=2010-02-06.18; # UTC | 4 | scriptversion=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 |
| 190 | fi | 198 | fi |
| 191 | 199 | ||
| @@ -232,9 +240,9 @@ fi | |||
| 232 | 240 | ||
| 233 | for src | 241 | for src |
| 234 | do | 242 | do |
| 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 |