246 |
exit 1 |
exit 1 |
247 |
fi |
fi |
248 |
|
|
249 |
|
# If this variable is set in any of the actions, the command in it |
250 |
|
# will be execed at the end. This prevents here-documents from being |
251 |
|
# left over by shells. |
252 |
|
exec_cmd= |
253 |
|
|
254 |
if test -z "$show_help"; then |
if test -z "$show_help"; then |
255 |
|
|
256 |
# Infer the operation mode. |
# Infer the operation mode. |
4846 |
if test -n "$current_libdirs"; then |
if test -n "$current_libdirs"; then |
4847 |
# Maybe just do a dry run. |
# Maybe just do a dry run. |
4848 |
test -n "$run" && current_libdirs=" -n$current_libdirs" |
test -n "$run" && current_libdirs=" -n$current_libdirs" |
4849 |
exec $SHELL $0 --finish$current_libdirs |
exec_cmd='$SHELL $0 --finish$current_libdirs' |
4850 |
exit 1 |
else |
4851 |
|
exit 0 |
4852 |
fi |
fi |
|
|
|
|
exit 0 |
|
4853 |
;; |
;; |
4854 |
|
|
4855 |
# libtool finish mode |
# libtool finish mode |
5052 |
LANG="$save_LANG"; export LANG |
LANG="$save_LANG"; export LANG |
5053 |
fi |
fi |
5054 |
|
|
5055 |
# Now actually exec the command. |
# Now prepare to actually exec the command. |
5056 |
eval "exec \$cmd$args" |
exec_cmd='"$cmd"$args' |
|
|
|
|
$echo "$modename: cannot exec \$cmd$args" |
|
|
exit 1 |
|
5057 |
else |
else |
5058 |
# Display what would be done. |
# Display what would be done. |
5059 |
if test -n "$shlibpath_var"; then |
if test -n "$shlibpath_var"; then |
5232 |
;; |
;; |
5233 |
esac |
esac |
5234 |
|
|
5235 |
$echo "$modename: invalid operation mode \`$mode'" 1>&2 |
if test -z "$exec_cmd"; then |
5236 |
$echo "$generic_help" 1>&2 |
$echo "$modename: invalid operation mode \`$mode'" 1>&2 |
5237 |
exit 1 |
$echo "$generic_help" 1>&2 |
5238 |
|
exit 1 |
5239 |
|
fi |
5240 |
fi # test -z "$show_help" |
fi # test -z "$show_help" |
5241 |
|
|
5242 |
|
if test -n "$exec_cmd"; then |
5243 |
|
eval exec $exec_cmd |
5244 |
|
exit 1 |
5245 |
|
fi |
5246 |
|
|
5247 |
# We need to display help for each of the modes. |
# We need to display help for each of the modes. |
5248 |
case $mode in |
case $mode in |
5249 |
"") $echo \ |
"") $echo \ |