⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ltmain.sh

📁 Linux下fuse用户文件系统的的源代码
💻 SH
📖 第 1 页 / 共 5 页
字号:
    ${opt_silent-false} || {      func_quote_for_expand "$my_cmd"      eval "func_echo $func_quote_for_expand_result"    }    if ${opt_dry_run-false}; then :; else      eval "$my_cmd"      my_status=$?      if test "$my_status" -eq 0; then :; else	eval "(exit $my_status); $my_fail_exp"      fi    fi}# func_version# Echo version message to standard output and exit.func_version (){    $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {        s/^# //; s/^# *$//;        s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/;        p;     }' < "$progpath"     exit $?}# func_usage# Echo short help message to standard output and exit.func_usage (){    $SED -n '/^# Usage:/,/# -h/ {        s/^# //; s/^# *$//;	s/\$progname/'$progname'/;	p;    }' < "$progpath"    $ECHO    $ECHO "run \`$progname --help | more' for full usage"    exit $?}# func_help# Echo long help message to standard output and exit.func_help (){    $SED -n '/^# Usage:/,/# Report bugs to/ {        s/^# //; s/^# *$//;	s*\$progname*'$progname'*;	s*\$SHELL*'"$SHELL"'*;	s*\$LTCC*'"$LTCC"'*;	s*\$LTCFLAGS*'"$LTCFLAGS"'*;	s*\$LD*'"$LD"'*;	s/\$with_gnu_ld/'"$with_gnu_ld"'/;	s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/;	s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/;	p;     }' < "$progpath"    exit $?}# func_missing_arg argname# Echo program name prefixed message to standard error and set global# exit_cmd.func_missing_arg (){    func_error "missing argument for $1"    exit_cmd=exit}exit_cmd=:# Check that we have a working $ECHO.if test "X$1" = X--no-reexec; then  # Discard the --no-reexec flag, and continue.  shiftelif test "X$1" = X--fallback-echo; then  # Avoid inline document here, it may be left over  :elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then  # Yippee, $ECHO works!  :else  # Restart under the correct shell, and then maybe $ECHO will work.  exec $SHELL "$progpath" --no-reexec ${1+"$@"}fiif test "X$1" = X--fallback-echo; then  # used as fallback echo  shift  cat <<EOF$*EOF  exit $EXIT_SUCCESSfimagic="%%%MAGIC variable%%%"# Global variables.# $mode is unsetnonopt=execute_dlfiles=preserve_args=lo2o="s/\\.lo\$/.${objext}/"o2lo="s/\\.${objext}\$/.lo/"opt_dry_run=falseopt_duplicate_deps=falseopt_silent=falseopt_debug=:# 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=# func_fatal_configuration arg...# Echo program name prefixed message to standard error, followed by# a configuration failure hint, and exit.func_fatal_configuration (){    func_error ${1+"$@"}    func_error "See the $PACKAGE documentation for more information."    func_fatal_error "Fatal configuration error."}# func_config# Display the configuration for all the tags in this script.func_config (){    re_begincf='^# ### BEGIN LIBTOOL'    re_endcf='^# ### END LIBTOOL'    # Default configuration.    $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"    # Now print the configurations for the tags.    for tagname in $taglist; do      $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"    done    exit $?}# func_features# Display the features supported by this script.func_features (){    $ECHO "host: $host"    if test "$build_libtool_libs" = yes; then      $ECHO "enable shared libraries"    else      $ECHO "disable shared libraries"    fi    if test "$build_old_libs" = yes; then      $ECHO "enable static libraries"    else      $ECHO "disable static libraries"    fi    exit $?}# func_enable_tag tagname# Verify that TAGNAME is valid, and either flag an error and exit, or# enable the TAGNAME tag.  We also add TAGNAME to the global $taglist# variable here.func_enable_tag (){  # Global variable:  tagname="$1"  re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"  re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"  sed_extractcf="/$re_begincf/,/$re_endcf/p"  # Validate tagname.  case $tagname in    *[!-_A-Za-z0-9,/]*)      func_fatal_error "invalid tag name: $tagname"      ;;  esac  # Don't test for the "default" C tag, as we know it's  # there but not specially marked.  case $tagname in    CC) ;;    *)      if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then	taglist="$taglist $tagname"	# Evaluate the configuration.  Be careful to quote the path	# and the sed script, to avoid splitting on whitespace, but	# also don't use non-portable quotes within backquotes within	# quotes we have to do it in 2 steps:	extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`	eval "$extractedcf"      else	func_error "ignoring unknown tag $tagname"      fi      ;;  esac}func_mode_help (){    # We need to display help for each of the modes.    case $mode in      "")        # Generic help is extracted from the usage comments        # at the start of this file.        func_help        ;;      clean)        $ECHO \"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...Remove files from the build directory.RM is the name of the program to use to delete files associated with each FILE(typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passedto RM.If FILE is a libtool library, object or program, all the files associatedwith it are deleted. Otherwise, only FILE itself is deleted using RM."        ;;      compile)      $ECHO \"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILECompile a source file into a libtool library object.This mode accepts the following additional options:  -o OUTPUT-FILE    set the output file name to OUTPUT-FILE  -no-suppress      do not suppress compiler output for multiple passes  -prefer-pic       try to building PIC objects only  -prefer-non-pic   try to building non-PIC objects only  -shared           do not build a \`.o' file suitable for static linking  -static           only build a \`.o' file suitable for static linkingCOMPILE-COMMAND is a command to be used in creating a \`standard' object filefrom the given SOURCEFILE.The output file name is determined by removing the directory component fromSOURCEFILE, then substituting the C source code suffix \`.c' with thelibrary object suffix, \`.lo'."        ;;      execute)        $ECHO \"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...Automatically set library path, then run a program.This mode accepts the following additional options:  -dlopen FILE      add the directory containing FILE to the library pathThis mode sets the library path environment variable according to \`-dlopen'flags.If any of the ARGS are libtool executable wrappers, then they are translatedinto their corresponding uninstalled binary, and any of their required librarydirectories are added to the library path.Then, COMMAND is executed, with ARGS as arguments."        ;;      finish)        $ECHO \"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...Complete the installation of libtool libraries.Each LIBDIR is a directory that contains libtool libraries.The commands that this mode executes may require superuser privileges.  Usethe \`--dry-run' option if you just want to see what would be executed."        ;;      install)        $ECHO \"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...Install executables or libraries.INSTALL-COMMAND is the installation command.  The first component should beeither the \`install' or \`cp' program.The following components of INSTALL-COMMAND are treated specially:  -inst-prefix PREFIX-DIR  Use PREFIX-DIR as a staging area for installationThe rest of the components are interpreted as arguments to that command (onlyBSD-compatible install options are recognized)."        ;;      link)        $ECHO \"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...Link object files or libraries together to form another library, or tocreate an executable program.LINK-COMMAND is a command using the C compiler that you would use to createa program from several object files.The following components of LINK-COMMAND are treated specially:  -all-static       do not do any dynamic linking at all  -avoid-version    do not add a version suffix if possible  -dlopen FILE      \`-dlpreopen' FILE if it cannot be dlopened at runtime  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols  -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)  -export-symbols SYMFILE		    try to export only the symbols listed in SYMFILE  -export-symbols-regex REGEX		    try to export only the symbols matching REGEX  -LLIBDIR          search LIBDIR for required installed libraries  -lNAME            OUTPUT-FILE requires the installed library libNAME  -module           build a library that can dlopened  -no-fast-install  disable the fast-install mode  -no-install       link a not-installable executable  -no-undefined     declare that a library does not refer to external symbols  -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects  -objectlist FILE  Use a list of object files found in FILE to specify objects  -precious-files-regex REGEX                    don't remove output files matching REGEX  -release RELEASE  specify package release information  -rpath LIBDIR     the created library will eventually be installed in LIBDIR  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries  -shared           only do dynamic linking of libtool libraries  -shrext SUFFIX    override the standard shared library file extension  -static           do not do any dynamic linking of libtool libraries  -version-info CURRENT[:REVISION[:AGE]]		    specify library version info [each variable defaults to 0]  -weak LIBNAME     declare that the target provides the LIBNAME interfaceAll other options (arguments beginning with \`-') are ignored.Every other argument is treated as a filename.  Files ending in \`.la' aretreated as uninstalled libtool libraries, other files are standard or libraryobject files.If the OUTPUT-FILE ends in \`.la', then a libtool library is created,only library objects (\`.lo' files) may be specified, and \`-rpath' isrequired, except when creating a convenience library.If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is createdusing \`ar' and \`ranlib', or on Windows using \`lib'.If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object fileis created, otherwise an executable program is created."        ;;      uninstall)        $ECHO \"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...Remove libraries from an installation directory.RM is the name of the program to use to delete files associated with each FILE(typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passedto RM.If FILE is a libtool library, all the files associated with it are deleted.Otherwise, only FILE itself is deleted using RM."        ;;      *)        func_fatal_help "invalid operation mode \`$mode'"        ;;    esac    $ECHO    $ECHO "Try \`$progname --help' for more information about other modes."    exit $?}# TEST SUITE MARKER ## NON-FUNCTION# Parse options once, thoroughly.  This comes as soon as possible in# the script to make things like `libtool --version' happen quickly.{  # sed scripts:  my_sed_single_opt='1s/^\(..\).*$/\1/;q'  my_sed_single_rest='1s/^..\(.*\)$/\1/;q'  my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'  my_sed_long_arg='1s/^-[^=]*=//'  # Shorthand for --mode=foo, only valid as the first argument  case $1 in  clean|clea|cle|cl)    shift; set dummy --mode clean ${1+"$@"}; shift    ;;  compile|compil|compi|comp|com|co|c)    shift; set dummy --mode compile ${1+"$@"}; shift    ;;  execute|execut|execu|exec|exe|ex|e)    shift; set dummy --mode execute ${1+"$@"}; shift    ;;  finish|finis|fini|fin|fi|f)    shift; set dummy --mode finish ${1+"$@"}; shift    ;;  install|instal|insta|inst|ins|in|i)    shift; set dummy --mode install ${1+"$@"}; shift    ;;  link|lin|li|l)    shift; set dummy --mode link ${1+"$@"}; shift    ;;  uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)    shift; set dummy --mode uninstall ${1+"$@"}; shift    ;;  esac  # Parse non-mode specific arguments:  while test "$#" -gt 0; do    opt="$1"    shift    case $opt in      --config)		func_config 					;;      --debug)		preserve_args="$preserve_args $opt"	    		func_echo "enabling shell trace mode"	    		opt_debug='set -x'			$opt_debug			;;      -dlopen)		test "$#" -eq 0 && func_missing_arg "$opt" && break			execute_dlfiles="$execute_dlfiles $1"			shift			;;      --dry-run | -n)	opt_dry_run=:					;;      --features)       func_features					;;      --finish)		mode="finish"					;;      --mode)		test "$#" -eq 0 && func_missing_arg "$opt" && break	    		case $1 in			  # Valid mode arguments:			  clean)	;;			  compile)	;;			  execute)	;;			  finish)	;;			  install)	;;			  link)		;;			  relink)	;;			  uninstall)	;;			  # Catch anything else as an error

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -