mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
1008. [port] libtool.m4, ltmain.sh from libtool-1.4.2
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,3 +1,5 @@
|
|||||||
|
1008. [port] libtool.m4, ltmain.sh from libtool-1.4.2
|
||||||
|
|
||||||
1007. [port] config.guess, config.sub from autoconf-2.52
|
1007. [port] config.guess, config.sub from autoconf-2.52
|
||||||
|
|
||||||
1006. [bug] If a KEY RR was found missing during DNSSEC validation,
|
1006. [bug] If a KEY RR was found missing during DNSSEC validation,
|
||||||
|
526
libtool.m4
vendored
526
libtool.m4
vendored
File diff suppressed because it is too large
Load Diff
138
ltmain.sh
138
ltmain.sh
@@ -55,8 +55,8 @@ modename="$progname"
|
|||||||
# Constants.
|
# Constants.
|
||||||
PROGRAM=ltmain.sh
|
PROGRAM=ltmain.sh
|
||||||
PACKAGE=libtool
|
PACKAGE=libtool
|
||||||
VERSION=1.4
|
VERSION=1.4.2
|
||||||
TIMESTAMP=" (1.920 2001/04/24 23:26:18)"
|
TIMESTAMP=" (1.922.2.53 2001/09/11 03:18:52)"
|
||||||
|
|
||||||
default_mode=
|
default_mode=
|
||||||
help="Try \`$progname --help' for more information."
|
help="Try \`$progname --help' for more information."
|
||||||
@@ -84,6 +84,9 @@ if test "${LANG+set}" = set; then
|
|||||||
save_LANG="$LANG"; LANG=C; export LANG
|
save_LANG="$LANG"; LANG=C; export LANG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Make sure IFS has a sensible default
|
||||||
|
: ${IFS=" "}
|
||||||
|
|
||||||
if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
|
if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
|
||||||
echo "$modename: not configured to build any kind of library" 1>&2
|
echo "$modename: not configured to build any kind of library" 1>&2
|
||||||
echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
|
echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
|
||||||
@@ -202,6 +205,11 @@ if test -n "$prevopt"; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If this variable is set in any of the actions, the command in it
|
||||||
|
# will be execed at the end. This prevents here-documents from being
|
||||||
|
# left over by shells.
|
||||||
|
exec_cmd=
|
||||||
|
|
||||||
if test -z "$show_help"; then
|
if test -z "$show_help"; then
|
||||||
|
|
||||||
# Infer the operation mode.
|
# Infer the operation mode.
|
||||||
@@ -329,7 +337,7 @@ if test -z "$show_help"; then
|
|||||||
-Wc,*)
|
-Wc,*)
|
||||||
args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
|
args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
|
||||||
lastarg=
|
lastarg=
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
|
save_ifs="$IFS"; IFS=','
|
||||||
for arg in $args; do
|
for arg in $args; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
|
|
||||||
@@ -615,6 +623,10 @@ compiler."
|
|||||||
# Now arrange that obj and lo_libobj become the same file
|
# Now arrange that obj and lo_libobj become the same file
|
||||||
$show "(cd $xdir && $LN_S $baseobj $libobj)"
|
$show "(cd $xdir && $LN_S $baseobj $libobj)"
|
||||||
if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
|
if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
|
||||||
|
# Unlock the critical section if it was locked
|
||||||
|
if test "$need_locks" != no; then
|
||||||
|
$run $rm "$lockfile"
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
error=$?
|
error=$?
|
||||||
@@ -1031,6 +1043,17 @@ compiler."
|
|||||||
# These systems don't actually have a C library (as such)
|
# These systems don't actually have a C library (as such)
|
||||||
test "X$arg" = "X-lc" && continue
|
test "X$arg" = "X-lc" && continue
|
||||||
;;
|
;;
|
||||||
|
*-*-openbsd*)
|
||||||
|
# Do not include libc due to us having libc/libc_r.
|
||||||
|
test "X$arg" = "X-lc" && continue
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
elif test "X$arg" = "X-lc_r"; then
|
||||||
|
case $host in
|
||||||
|
*-*-openbsd*)
|
||||||
|
# Do not include libc_r directly, use -pthread flag.
|
||||||
|
continue
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
deplibs="$deplibs $arg"
|
deplibs="$deplibs $arg"
|
||||||
@@ -1122,7 +1145,7 @@ compiler."
|
|||||||
-Wc,*)
|
-Wc,*)
|
||||||
args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
|
args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
|
||||||
arg=
|
arg=
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
|
save_ifs="$IFS"; IFS=','
|
||||||
for flag in $args; do
|
for flag in $args; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
case $flag in
|
case $flag in
|
||||||
@@ -1140,7 +1163,7 @@ compiler."
|
|||||||
-Wl,*)
|
-Wl,*)
|
||||||
args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
|
args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
|
||||||
arg=
|
arg=
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
|
save_ifs="$IFS"; IFS=','
|
||||||
for flag in $args; do
|
for flag in $args; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
case $flag in
|
case $flag in
|
||||||
@@ -1750,7 +1773,7 @@ compiler."
|
|||||||
if test -f "$output_objdir/$soname-def"; then :
|
if test -f "$output_objdir/$soname-def"; then :
|
||||||
else
|
else
|
||||||
$show "extracting exported symbol list from \`$soname'"
|
$show "extracting exported symbol list from \`$soname'"
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
|
save_ifs="$IFS"; IFS='~'
|
||||||
eval cmds=\"$extract_expsyms_cmds\"
|
eval cmds=\"$extract_expsyms_cmds\"
|
||||||
for cmd in $cmds; do
|
for cmd in $cmds; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
@@ -1763,7 +1786,7 @@ compiler."
|
|||||||
# Create $newlib
|
# Create $newlib
|
||||||
if test -f "$output_objdir/$newlib"; then :; else
|
if test -f "$output_objdir/$newlib"; then :; else
|
||||||
$show "generating import library for \`$soname'"
|
$show "generating import library for \`$soname'"
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
|
save_ifs="$IFS"; IFS='~'
|
||||||
eval cmds=\"$old_archive_from_expsyms_cmds\"
|
eval cmds=\"$old_archive_from_expsyms_cmds\"
|
||||||
for cmd in $cmds; do
|
for cmd in $cmds; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
@@ -1911,17 +1934,17 @@ compiler."
|
|||||||
echo "*** Therefore, libtool will create a static module, that should work "
|
echo "*** Therefore, libtool will create a static module, that should work "
|
||||||
echo "*** as long as the dlopening application is linked with the -dlopen flag."
|
echo "*** as long as the dlopening application is linked with the -dlopen flag."
|
||||||
if test -z "$global_symbol_pipe"; then
|
if test -z "$global_symbol_pipe"; then
|
||||||
echo
|
echo
|
||||||
echo "*** However, this would only work if libtool was able to extract symbol"
|
echo "*** However, this would only work if libtool was able to extract symbol"
|
||||||
echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
|
echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
|
||||||
echo "*** not find such a program. So, this module is probably useless."
|
echo "*** not find such a program. So, this module is probably useless."
|
||||||
echo "*** \`nm' from GNU binutils and a full rebuild may help."
|
echo "*** \`nm' from GNU binutils and a full rebuild may help."
|
||||||
fi
|
fi
|
||||||
if test "$build_old_libs" = no; then
|
if test "$build_old_libs" = no; then
|
||||||
build_libtool_libs=module
|
build_libtool_libs=module
|
||||||
build_old_libs=yes
|
build_old_libs=yes
|
||||||
else
|
else
|
||||||
build_libtool_libs=no
|
build_libtool_libs=no
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@@ -2175,7 +2198,7 @@ compiler."
|
|||||||
else
|
else
|
||||||
|
|
||||||
# Parse the version information argument.
|
# Parse the version information argument.
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
|
save_ifs="$IFS"; IFS=':'
|
||||||
set dummy $vinfo 0 0 0
|
set dummy $vinfo 0 0 0
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
|
|
||||||
@@ -2312,6 +2335,16 @@ compiler."
|
|||||||
if test -z "$vinfo" && test -n "$release"; then
|
if test -z "$vinfo" && test -n "$release"; then
|
||||||
major=
|
major=
|
||||||
verstring="0.0"
|
verstring="0.0"
|
||||||
|
case $version_type in
|
||||||
|
darwin)
|
||||||
|
# we can't check for "0.0" in archive_cmds due to quoting
|
||||||
|
# problems, so we reset it completely
|
||||||
|
verstring=""
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
verstring="0.0"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if test "$need_version" = no; then
|
if test "$need_version" = no; then
|
||||||
versuffix=
|
versuffix=
|
||||||
else
|
else
|
||||||
@@ -2408,6 +2441,9 @@ compiler."
|
|||||||
*-*-netbsd*)
|
*-*-netbsd*)
|
||||||
# Don't link with libc until the a.out ld.so is fixed.
|
# Don't link with libc until the a.out ld.so is fixed.
|
||||||
;;
|
;;
|
||||||
|
*-*-openbsd*)
|
||||||
|
# Do not include libc due to us having libc/libc_r.
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# Add libc to deplibs on all other systems if necessary.
|
# Add libc to deplibs on all other systems if necessary.
|
||||||
if test $build_libtool_need_lc = "yes"; then
|
if test $build_libtool_need_lc = "yes"; then
|
||||||
@@ -2784,7 +2820,7 @@ EOF
|
|||||||
export_symbols="$output_objdir/$libname.exp"
|
export_symbols="$output_objdir/$libname.exp"
|
||||||
$run $rm $export_symbols
|
$run $rm $export_symbols
|
||||||
eval cmds=\"$export_symbols_cmds\"
|
eval cmds=\"$export_symbols_cmds\"
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
|
save_ifs="$IFS"; IFS='~'
|
||||||
for cmd in $cmds; do
|
for cmd in $cmds; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
$show "$cmd"
|
$show "$cmd"
|
||||||
@@ -2860,7 +2896,7 @@ EOF
|
|||||||
else
|
else
|
||||||
eval cmds=\"$archive_cmds\"
|
eval cmds=\"$archive_cmds\"
|
||||||
fi
|
fi
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
|
save_ifs="$IFS"; IFS='~'
|
||||||
for cmd in $cmds; do
|
for cmd in $cmds; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
$show "$cmd"
|
$show "$cmd"
|
||||||
@@ -2988,7 +3024,7 @@ EOF
|
|||||||
|
|
||||||
output="$obj"
|
output="$obj"
|
||||||
eval cmds=\"$reload_cmds\"
|
eval cmds=\"$reload_cmds\"
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
|
save_ifs="$IFS"; IFS='~'
|
||||||
for cmd in $cmds; do
|
for cmd in $cmds; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
$show "$cmd"
|
$show "$cmd"
|
||||||
@@ -3024,7 +3060,7 @@ EOF
|
|||||||
reload_objs="$libobjs $reload_conv_objs"
|
reload_objs="$libobjs $reload_conv_objs"
|
||||||
output="$libobj"
|
output="$libobj"
|
||||||
eval cmds=\"$reload_cmds\"
|
eval cmds=\"$reload_cmds\"
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
|
save_ifs="$IFS"; IFS='~'
|
||||||
for cmd in $cmds; do
|
for cmd in $cmds; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
$show "$cmd"
|
$show "$cmd"
|
||||||
@@ -3287,27 +3323,25 @@ extern \"C\" {
|
|||||||
#undef lt_preloaded_symbols
|
#undef lt_preloaded_symbols
|
||||||
|
|
||||||
#if defined (__STDC__) && __STDC__
|
#if defined (__STDC__) && __STDC__
|
||||||
# define lt_ptr_t void *
|
# define lt_ptr void *
|
||||||
#else
|
#else
|
||||||
# define lt_ptr_t char *
|
# define lt_ptr char *
|
||||||
# define const
|
# define const
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The mapping between symbol names and symbols. */
|
/* The mapping between symbol names and symbols. */
|
||||||
const struct {
|
const struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
lt_ptr_t address;
|
lt_ptr address;
|
||||||
}
|
}
|
||||||
lt_preloaded_symbols[] =
|
lt_preloaded_symbols[] =
|
||||||
{\
|
{\
|
||||||
"
|
"
|
||||||
|
|
||||||
sed -n -e 's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p' \
|
eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
|
||||||
-e 's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p' \
|
|
||||||
< "$nlist" >> "$output_objdir/$dlsyms"
|
|
||||||
|
|
||||||
$echo >> "$output_objdir/$dlsyms" "\
|
$echo >> "$output_objdir/$dlsyms" "\
|
||||||
{0, (lt_ptr_t) 0}
|
{0, (lt_ptr) 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
/* This works around a problem in FreeBSD linker */
|
/* This works around a problem in FreeBSD linker */
|
||||||
@@ -3618,8 +3652,9 @@ else
|
|||||||
|
|
||||||
# relink executable if necessary
|
# relink executable if necessary
|
||||||
if test -n \"\$relink_command\"; then
|
if test -n \"\$relink_command\"; then
|
||||||
if (eval \$relink_command); then :
|
if relink_command_output=\`eval \$relink_command 2>&1\`; then :
|
||||||
else
|
else
|
||||||
|
$echo \"\$relink_command_output\" >&2
|
||||||
$rm \"\$progdir/\$file\"
|
$rm \"\$progdir/\$file\"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -3790,7 +3825,7 @@ fi\
|
|||||||
|
|
||||||
eval cmds=\"$old_archive_cmds\"
|
eval cmds=\"$old_archive_cmds\"
|
||||||
fi
|
fi
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
|
save_ifs="$IFS"; IFS='~'
|
||||||
for cmd in $cmds; do
|
for cmd in $cmds; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
$show "$cmd"
|
$show "$cmd"
|
||||||
@@ -4165,7 +4200,7 @@ relink_command=\"$relink_command\""
|
|||||||
# Do each command in the postinstall commands.
|
# Do each command in the postinstall commands.
|
||||||
lib="$destdir/$realname"
|
lib="$destdir/$realname"
|
||||||
eval cmds=\"$postinstall_cmds\"
|
eval cmds=\"$postinstall_cmds\"
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
|
save_ifs="$IFS"; IFS='~'
|
||||||
for cmd in $cmds; do
|
for cmd in $cmds; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
$show "$cmd"
|
$show "$cmd"
|
||||||
@@ -4352,7 +4387,7 @@ relink_command=\"$relink_command\""
|
|||||||
|
|
||||||
# Do each command in the postinstall commands.
|
# Do each command in the postinstall commands.
|
||||||
eval cmds=\"$old_postinstall_cmds\"
|
eval cmds=\"$old_postinstall_cmds\"
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
|
save_ifs="$IFS"; IFS='~'
|
||||||
for cmd in $cmds; do
|
for cmd in $cmds; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
$show "$cmd"
|
$show "$cmd"
|
||||||
@@ -4368,11 +4403,10 @@ relink_command=\"$relink_command\""
|
|||||||
if test -n "$current_libdirs"; then
|
if test -n "$current_libdirs"; then
|
||||||
# Maybe just do a dry run.
|
# Maybe just do a dry run.
|
||||||
test -n "$run" && current_libdirs=" -n$current_libdirs"
|
test -n "$run" && current_libdirs=" -n$current_libdirs"
|
||||||
exec $SHELL $0 --finish$current_libdirs
|
exec_cmd='$SHELL $0 --finish$current_libdirs'
|
||||||
exit 1
|
else
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# libtool finish mode
|
# libtool finish mode
|
||||||
@@ -4391,7 +4425,7 @@ relink_command=\"$relink_command\""
|
|||||||
if test -n "$finish_cmds"; then
|
if test -n "$finish_cmds"; then
|
||||||
# Do each command in the finish commands.
|
# Do each command in the finish commands.
|
||||||
eval cmds=\"$finish_cmds\"
|
eval cmds=\"$finish_cmds\"
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
|
save_ifs="$IFS"; IFS='~'
|
||||||
for cmd in $cmds; do
|
for cmd in $cmds; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
$show "$cmd"
|
$show "$cmd"
|
||||||
@@ -4575,11 +4609,8 @@ relink_command=\"$relink_command\""
|
|||||||
LANG="$save_LANG"; export LANG
|
LANG="$save_LANG"; export LANG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Now actually exec the command.
|
# Now prepare to actually exec the command.
|
||||||
eval "exec \$cmd$args"
|
exec_cmd='"$cmd"$args'
|
||||||
|
|
||||||
$echo "$modename: cannot exec \$cmd$args"
|
|
||||||
exit 1
|
|
||||||
else
|
else
|
||||||
# Display what would be done.
|
# Display what would be done.
|
||||||
if test -n "$shlibpath_var"; then
|
if test -n "$shlibpath_var"; then
|
||||||
@@ -4641,14 +4672,14 @@ relink_command=\"$relink_command\""
|
|||||||
|
|
||||||
# Don't error if the file doesn't exist and rm -f was used.
|
# Don't error if the file doesn't exist and rm -f was used.
|
||||||
if (test -L "$file") >/dev/null 2>&1 \
|
if (test -L "$file") >/dev/null 2>&1 \
|
||||||
|| (test -h "$file") >/dev/null 2>&1 \
|
|| (test -h "$file") >/dev/null 2>&1 \
|
||||||
|| test -f "$file"; then
|
|| test -f "$file"; then
|
||||||
:
|
:
|
||||||
elif test -d "$file"; then
|
elif test -d "$file"; then
|
||||||
exit_status=1
|
exit_status=1
|
||||||
continue
|
continue
|
||||||
elif test "$rmforce" = yes; then
|
elif test "$rmforce" = yes; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rmfiles="$file"
|
rmfiles="$file"
|
||||||
@@ -4670,7 +4701,7 @@ relink_command=\"$relink_command\""
|
|||||||
if test -n "$library_names"; then
|
if test -n "$library_names"; then
|
||||||
# Do each command in the postuninstall commands.
|
# Do each command in the postuninstall commands.
|
||||||
eval cmds=\"$postuninstall_cmds\"
|
eval cmds=\"$postuninstall_cmds\"
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
|
save_ifs="$IFS"; IFS='~'
|
||||||
for cmd in $cmds; do
|
for cmd in $cmds; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
$show "$cmd"
|
$show "$cmd"
|
||||||
@@ -4685,7 +4716,7 @@ relink_command=\"$relink_command\""
|
|||||||
if test -n "$old_library"; then
|
if test -n "$old_library"; then
|
||||||
# Do each command in the old_postuninstall commands.
|
# Do each command in the old_postuninstall commands.
|
||||||
eval cmds=\"$old_postuninstall_cmds\"
|
eval cmds=\"$old_postuninstall_cmds\"
|
||||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
|
save_ifs="$IFS"; IFS='~'
|
||||||
for cmd in $cmds; do
|
for cmd in $cmds; do
|
||||||
IFS="$save_ifs"
|
IFS="$save_ifs"
|
||||||
$show "$cmd"
|
$show "$cmd"
|
||||||
@@ -4744,11 +4775,18 @@ relink_command=\"$relink_command\""
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
$echo "$modename: invalid operation mode \`$mode'" 1>&2
|
if test -z "$exec_cmd"; then
|
||||||
$echo "$generic_help" 1>&2
|
$echo "$modename: invalid operation mode \`$mode'" 1>&2
|
||||||
exit 1
|
$echo "$generic_help" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi # test -z "$show_help"
|
fi # test -z "$show_help"
|
||||||
|
|
||||||
|
if test -n "$exec_cmd"; then
|
||||||
|
eval exec $exec_cmd
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# We need to display help for each of the modes.
|
# We need to display help for each of the modes.
|
||||||
case $mode in
|
case $mode in
|
||||||
"") $echo \
|
"") $echo \
|
||||||
|
Reference in New Issue
Block a user