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

Diff of /libtool/ltmain.in

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

revision 1.200.2.67 by oliva, Thu May 3 15:39:52 2001 UTC revision 1.200.2.68 by oliva, Sun May 20 18:09:55 2001 UTC
# Line 246  if test -n "$prevopt"; then Line 246  if test -n "$prevopt"; then
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.
# Line 4841  relink_command=\"$relink_command\"" Line 4846  relink_command=\"$relink_command\""
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
# Line 5048  relink_command=\"$relink_command\"" Line 5052  relink_command=\"$relink_command\""
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
# Line 5231  relink_command=\"$relink_command\"" Line 5232  relink_command=\"$relink_command\""
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 \

Legend:
Removed from v.1.200.2.67  
changed lines
  Added in v.1.200.2.68

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