mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-30 14:30:15 +08:00
reorganize parsing of --mode=finish arguments
* libltdl/config/ltmain.m4sh (func_mode_finish): Split arguments for directories and *.la files.
This commit is contained in:
parent
09a695acf9
commit
55e986b8b4
@ -1397,15 +1397,28 @@ test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
|
||||
func_mode_finish ()
|
||||
{
|
||||
$opt_debug
|
||||
libdirs="$nonopt"
|
||||
libs=
|
||||
libdirs=
|
||||
admincmds=
|
||||
|
||||
if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
|
||||
for dir
|
||||
for opt in "$nonopt" ${1+"$@"}
|
||||
do
|
||||
func_append libdirs " $dir"
|
||||
if test -d "$opt"; then
|
||||
func_append libdirs " $opt"
|
||||
|
||||
elif test -f "$opt"; then
|
||||
if func_lalib_unsafe_p "$opt"; then
|
||||
func_append libs " $opt"
|
||||
else
|
||||
func_warning "\`$opt' is not a valid libtool archive"
|
||||
fi
|
||||
|
||||
else
|
||||
func_fatal_error "invalid argument \`$opt'"
|
||||
fi
|
||||
done
|
||||
|
||||
if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
|
||||
for libdir in $libdirs; do
|
||||
if test -n "$finish_cmds"; then
|
||||
# Do each command in the finish commands.
|
||||
@ -1424,6 +1437,7 @@ func_mode_finish ()
|
||||
# Exit here if they wanted silent mode.
|
||||
$opt_silent && exit $EXIT_SUCCESS
|
||||
|
||||
if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
|
||||
echo "----------------------------------------------------------------------"
|
||||
echo "Libraries have been installed in:"
|
||||
for libdir in $libdirs; do
|
||||
@ -1467,6 +1481,7 @@ func_mode_finish ()
|
||||
;;
|
||||
esac
|
||||
echo "----------------------------------------------------------------------"
|
||||
fi
|
||||
exit $EXIT_SUCCESS
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user