Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7127b760
Commit
7127b760
authored
Feb 15, 2011
by
Paul Eggert
Browse files
* install-sh: Update to scriptversion 2011-01-19.21.
parent
ca6ddb88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
ChangeLog
ChangeLog
+2
-0
install-sh
install-sh
+13
-10
No files found.
ChangeLog
View file @
7127b760
...
...
@@ -2,6 +2,8 @@
Merge from gnulib.
* install-sh: Update to scriptversion 2011-01-19.21.
2011-02-13 Bruno Haible <bruno@clisp.org>
Consistent macro naming for macros that use GCC __attribute__.
...
...
install-sh
View file @
7127b760
#!/bin/sh
# install - install a program, script, or datafile
scriptversion
=
201
0
-0
2-06.18
;
# UTC
scriptversion
=
201
1
-0
1-19.21
;
# UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
...
...
@@ -156,6 +156,10 @@ while test $# -ne 0; do
-s
)
stripcmd
=
$stripprog
;;
-t
)
dst_arg
=
$2
# Protect names problematic for `test' and other utilities.
case
$dst_arg
in
-
*
|
[=
\(\)
!]
)
dst_arg
=
./
$dst_arg
;;
esac
shift
;;
-T
)
no_target_directory
=
true
;;
...
...
@@ -186,6 +190,10 @@ if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
fi
shift
# arg
dst_arg
=
$arg
# Protect names problematic for `test' and other utilities.
case
$dst_arg
in
-
*
|
[=
\(\)
!]
)
dst_arg
=
./
$dst_arg
;;
esac
done
fi
...
...
@@ -232,9 +240,9 @@ fi
for
src
do
# Protect names
starting with `-'
.
# Protect names
problematic for `test' and other utilities
.
case
$src
in
-
*
)
src
=
./
$src
;;
-
*
|
[=
\(\)
!]
)
src
=
./
$src
;;
esac
if
test
-n
"
$dir_arg
"
;
then
...
...
@@ -256,12 +264,7 @@ do
echo
"
$0
: no destination specified."
>
&2
exit
1
fi
dst
=
$dst_arg
# Protect names starting with `-'.
case
$dst
in
-
*
)
dst
=
./
$dst
;;
esac
# If destination is a directory, append the input filename; won't work
# if double slashes aren't ignored.
...
...
@@ -389,7 +392,7 @@ do
case
$dstdir
in
/
*
)
prefix
=
'/'
;;
-
*
)
prefix
=
'./'
;;
[
-
=
\(\)
!]
*
)
prefix
=
'./'
;;
*
)
prefix
=
''
;;
esac
...
...
@@ -407,7 +410,7 @@ do
for
d
do
test
-z
"
$d
"
&&
continue
test
X
"
$d
"
=
X
&&
continue
prefix
=
$prefix$d
if
test
-d
"
$prefix
"
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment