libtool: allow tabs in *_cmds variables

This is in preparation for the next patch, which needs to have literal
tab characters survive the evaluation of the *_cmds variables.

build-aux/ltmain.in (func_execute_cmds, func_mode_link): Don't collapse
tabs and surrounding whitespace into a single space when executing a
tilde-separated cmds construct, instead keep any tabs intact.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
This commit is contained in:
Peter Rosin 2013-01-21 06:41:00 +01:00
parent de1e6cef33
commit 726bf31ced

View File

@ -656,8 +656,9 @@ func_execute_cmds ()
save_ifs=$IFS; IFS='~' save_ifs=$IFS; IFS='~'
for cmd in $1; do for cmd in $1; do
IFS=$save_ifs IFS=$sp$nl
eval cmd=\"$cmd\" eval cmd=\"$cmd\"
IFS=$save_ifs
func_show_eval "$cmd" "${2-:}" func_show_eval "$cmd" "${2-:}"
done done
IFS=$save_ifs IFS=$save_ifs
@ -7964,8 +7965,9 @@ EOF
save_ifs=$IFS; IFS='~' save_ifs=$IFS; IFS='~'
for cmd in $cmds; do for cmd in $cmds; do
IFS=$save_ifs IFS=$sp$nl
eval cmd=\"$cmd\" eval cmd=\"$cmd\"
IFS=$save_ifs
$opt_quiet || { $opt_quiet || {
func_quote_for_expand "$cmd" func_quote_for_expand "$cmd"
eval "func_echo $func_quote_for_expand_result" eval "func_echo $func_quote_for_expand_result"