/[libtool]/libtool/ltmain.in
ViewVC logotype

Diff of /libtool/ltmain.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.260 by gary, Sun May 27 23:20:45 2001 UTC revision 1.261 by gary, Mon Jun 25 20:42:45 2001 UTC
# Line 240  if test -n "$prevopt"; then Line 240  if test -n "$prevopt"; then
240    exit 1    exit 1
241  fi  fi
242    
243    # If this variable is set in any of the actions, the command in it
244    # will be execed at the end.  This prevents here-documents from being
245    # left over by shells.
246    exec_cmd=
247    
248  if test -z "$show_help"; then  if test -z "$show_help"; then
249    
250    # Infer the operation mode.    # Infer the operation mode.
# Line 4842  relink_command=\"$relink_command\"" Line 4847  relink_command=\"$relink_command\""
4847      if test -n "$current_libdirs"; then      if test -n "$current_libdirs"; then
4848        # Maybe just do a dry run.        # Maybe just do a dry run.
4849        test -n "$run" && current_libdirs=" -n$current_libdirs"        test -n "$run" && current_libdirs=" -n$current_libdirs"
4850        exec $SHELL $0 --finish$current_libdirs        exec_cmd='$SHELL $0 --finish$current_libdirs'
4851        exit 1      else
4852          exit 0
4853      fi      fi
   
     exit 0  
4854      ;;      ;;
4855    
4856    # libtool finish mode    # libtool finish mode
# Line 5049  relink_command=\"$relink_command\"" Line 5053  relink_command=\"$relink_command\""
5053          LANG="$save_LANG"; export LANG          LANG="$save_LANG"; export LANG
5054        fi        fi
5055    
5056        # Now actually exec the command.        # Now prepare to actually exec the command.
5057        eval "exec \$cmd$args"        exec_cmd='"$cmd"$args'
   
       $echo "$modename: cannot exec \$cmd$args"  
       exit 1  
5058      else      else
5059        # Display what would be done.        # Display what would be done.
5060        if test -n "$shlibpath_var"; then        if test -n "$shlibpath_var"; then
# Line 5232  relink_command=\"$relink_command\"" Line 5233  relink_command=\"$relink_command\""
5233      ;;      ;;
5234    esac    esac
5235    
5236    $echo "$modename: invalid operation mode \`$mode'" 1>&2    if test -z "$exec_cmd"; then
5237    $echo "$generic_help" 1>&2      $echo "$modename: invalid operation mode \`$mode'" 1>&2
5238    exit 1      $echo "$generic_help" 1>&2
5239        exit 1
5240      fi
5241  fi # test -z "$show_help"  fi # test -z "$show_help"
5242    
5243    if test -n "$exec_cmd"; then
5244      eval exec $exec_cmd
5245      exit 1
5246    fi
5247    
5248  # We need to display help for each of the modes.  # We need to display help for each of the modes.
5249  case $mode in  case $mode in
5250  "") $echo \  "") $echo \

Legend:
Removed from v.1.260  
changed lines
  Added in v.1.261

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26