5361 |
# install_prog (especially on Windows NT). |
# install_prog (especially on Windows NT). |
5362 |
if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || |
if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || |
5363 |
# Allow the use of GNU shtool's install command. |
# Allow the use of GNU shtool's install command. |
5364 |
$echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then |
$echo "X$nonopt" | grep shtool > /dev/null; then |
5365 |
# Aesthetically quote it. |
# Aesthetically quote it. |
5366 |
arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` |
arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` |
5367 |
case $arg in |
case $arg in |
5374 |
shift |
shift |
5375 |
else |
else |
5376 |
install_prog= |
install_prog= |
5377 |
arg="$nonopt" |
arg=$nonopt |
5378 |
fi |
fi |
5379 |
|
|
5380 |
# The real first argument should be the name of the installation program. |
# The real first argument should be the name of the installation program. |
5399 |
do |
do |
5400 |
if test -n "$dest"; then |
if test -n "$dest"; then |
5401 |
files="$files $dest" |
files="$files $dest" |
5402 |
dest="$arg" |
dest=$arg |
5403 |
continue |
continue |
5404 |
fi |
fi |
5405 |
|
|
5406 |
case $arg in |
case $arg in |
5407 |
-d) isdir=yes ;; |
-d) isdir=yes ;; |
5408 |
-f) prev="-f" ;; |
-f) |
5409 |
-g) prev="-g" ;; |
case " $install_prog " in |
5410 |
-m) prev="-m" ;; |
*[\\\ /]cp\ *) ;; |
5411 |
-o) prev="-o" ;; |
*) prev=$arg ;; |
5412 |
|
esac |
5413 |
|
;; |
5414 |
|
-g | -m | -o) prev=$arg ;; |
5415 |
-s) |
-s) |
5416 |
stripme=" -s" |
stripme=" -s" |
5417 |
continue |
continue |
5418 |
;; |
;; |
5419 |
-*) ;; |
-*) |
5420 |
|
;; |
5421 |
*) |
*) |
5422 |
# If the previous option needed an argument, then skip it. |
# If the previous option needed an argument, then skip it. |
5423 |
if test -n "$prev"; then |
if test -n "$prev"; then |
5424 |
prev= |
prev= |
5425 |
else |
else |
5426 |
dest="$arg" |
dest=$arg |
5427 |
continue |
continue |
5428 |
fi |
fi |
5429 |
;; |
;; |