source:
issm/oecreview/Archive/24684-25833/ISSM-25632-25633.diff
Last change on this file was 25834, checked in by , 4 years ago | |
---|---|
File size: 6.9 KB |
-
../trunk-jpl/src/c/issm_post
1 #! /bin/sh2 3 # issm_post - temporary wrapper script for .libs/issm_post.exe4 # Generated by libtool (GNU libtool) 2.4.25 #6 # The issm_post program cannot be directly executed until all the libtool7 # libraries that it depends on are installed.8 #9 # This wrapper script should never be moved out of the build directory.10 # If it is, it will not operate correctly.11 12 # Sed substitution that helps us do robust quoting. It backslashifies13 # metacharacters that are still active within double-quoted strings.14 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'15 16 # Be Bourne compatible17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then18 emulate sh19 NULLCMD=:20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which21 # is contrary to our usage. Disable this feature.22 alias -g '${1+"$@"}'='"$@"'23 setopt NO_GLOB_SUBST24 else25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac26 fi27 BIN_SH=xpg4; export BIN_SH # for Tru6428 DUALCASE=1; export DUALCASE # for MKS sh29 30 # The HP-UX ksh and POSIX shell print the target directory to stdout31 # if CDPATH is set.32 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH33 34 relink_command=""35 36 # This environment variable determines our operation mode.37 if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then38 # install mode needs the following variables:39 generated_by_libtool_version='2.4.2'40 notinst_deplibs=' ./libISSMCore.la ./libISSMOverload.la ./libISSMModules.la /Users/jdq/Repos/issm/issm/trunk-jpl-new/src/c/libISSMCore.la'41 else42 # When we are sourced in execute mode, $file and $ECHO are already set.43 if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then44 file="$0"45 46 # A function that is used when there is no print builtin or printf.47 func_fallback_echo ()48 {49 eval 'cat <<_LTECHO_EOF50 $151 _LTECHO_EOF'52 }53 ECHO="printf %s\\n"54 fi55 56 # Very basic option parsing. These options are (a) specific to57 # the libtool wrapper, (b) are identical between the wrapper58 # /script/ and the wrapper /executable/ which is used only on59 # windows platforms, and (c) all begin with the string --lt-60 # (application programs are unlikely to have options which match61 # this pattern).62 #63 # There are only two supported options: --lt-debug and64 # --lt-dump-script. There is, deliberately, no --lt-help.65 #66 # The first argument to this parsing function should be the67 # script's ../../libtool value, followed by no.68 lt_option_debug=69 func_parse_lt_options ()70 {71 lt_script_arg0=$072 shift73 for lt_opt74 do75 case "$lt_opt" in76 --lt-debug) lt_option_debug=1 ;;77 --lt-dump-script)78 lt_dump_D=`$ECHO "X$lt_script_arg0" | /usr/bin/sed -e 's/^X//' -e 's%/[^/]*$%%'`79 test "X$lt_dump_D" = "X$lt_script_arg0" && lt_dump_D=.80 lt_dump_F=`$ECHO "X$lt_script_arg0" | /usr/bin/sed -e 's/^X//' -e 's%^.*/%%'`81 cat "$lt_dump_D/$lt_dump_F"82 exit 083 ;;84 --lt-*)85 $ECHO "Unrecognized --lt- option: '$lt_opt'" 1>&286 exit 187 ;;88 esac89 done90 91 # Print the debug banner immediately:92 if test -n "$lt_option_debug"; then93 echo "issm_post.exe:issm_post:${LINENO}: libtool wrapper (GNU libtool) 2.4.2" 1>&294 fi95 }96 97 # Used when --lt-debug. Prints its arguments to stdout98 # (redirection is the responsibility of the caller)99 func_lt_dump_args ()100 {101 lt_dump_args_N=1;102 for lt_arg103 do104 $ECHO "issm_post.exe:issm_post:${LINENO}: newargv[$lt_dump_args_N]: $lt_arg"105 lt_dump_args_N=`expr $lt_dump_args_N + 1`106 done107 }108 109 # Core function for launching the target application110 func_exec_program_core ()111 {112 113 if test -n "$lt_option_debug"; then114 $ECHO "issm_post.exe:issm_post:${LINENO}: newargv[0]: $progdir/$program" 1>&2115 func_lt_dump_args ${1+"$@"} 1>&2116 fi117 exec "$progdir/$program" ${1+"$@"}118 119 $ECHO "$0: cannot exec $program $*" 1>&2120 exit 1121 }122 123 # A function to encapsulate launching the target application124 # Strips options in the --lt-* namespace from $@ and125 # launches target application with the remaining arguments.126 func_exec_program ()127 {128 case " $* " in129 *\ --lt-*)130 for lt_wr_arg131 do132 case $lt_wr_arg in133 --lt-*) ;;134 *) set x "$@" "$lt_wr_arg"; shift;;135 esac136 shift137 done ;;138 esac139 func_exec_program_core ${1+"$@"}140 }141 142 # Parse options143 func_parse_lt_options "$0" ${1+"$@"}144 145 # Find the directory that this script lives in.146 thisdir=`$ECHO "$file" | /usr/bin/sed 's%/[^/]*$%%'`147 test "x$thisdir" = "x$file" && thisdir=.148 149 # Follow symbolic links until we get to the real thisdir.150 file=`ls -ld "$file" | /usr/bin/sed -n 's/.*-> //p'`151 while test -n "$file"; do152 destdir=`$ECHO "$file" | /usr/bin/sed 's%/[^/]*$%%'`153 154 # If there was a directory component, then change thisdir.155 if test "x$destdir" != "x$file"; then156 case "$destdir" in157 [\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;158 *) thisdir="$thisdir/$destdir" ;;159 esac160 fi161 162 file=`$ECHO "$file" | /usr/bin/sed 's%^.*/%%'`163 file=`ls -ld "$thisdir/$file" | /usr/bin/sed -n 's/.*-> //p'`164 done165 166 # Usually 'no', except on cygwin/mingw when embedded into167 # the cwrapper.168 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=no169 if test "$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR" = "yes"; then170 # special case for '.'171 if test "$thisdir" = "."; then172 thisdir=`pwd`173 fi174 # remove .libs from thisdir175 case "$thisdir" in176 *[\\/].libs ) thisdir=`$ECHO "$thisdir" | /usr/bin/sed 's%[\\/][^\\/]*$%%'` ;;177 .libs ) thisdir=. ;;178 esac179 fi180 181 # Try to get the absolute directory name.182 absdir=`cd "$thisdir" && pwd`183 test -n "$absdir" && thisdir="$absdir"184 185 program='issm_post.exe'186 progdir="$thisdir/.libs"187 188 189 if test -f "$progdir/$program"; then190 # Add our own library path to DYLD_LIBRARY_PATH191 DYLD_LIBRARY_PATH="/Users/jdq/Repos/issm/issm/trunk-jpl-new/src/c/.libs:$DYLD_LIBRARY_PATH"192 193 # Some systems cannot cope with colon-terminated DYLD_LIBRARY_PATH194 # The second colon is a workaround for a bug in BeOS R4 sed195 DYLD_LIBRARY_PATH=`$ECHO "$DYLD_LIBRARY_PATH" | /usr/bin/sed 's/::*$//'`196 197 export DYLD_LIBRARY_PATH198 199 if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then200 # Run the actual program with our arguments.201 func_exec_program ${1+"$@"}202 fi203 else204 # The program doesn't exist.205 $ECHO "$0: error: \`$progdir/$program' does not exist" 1>&2206 $ECHO "This script is just a wrapper for $program." 1>&2207 $ECHO "See the libtool documentation for more information." 1>&2208 exit 1209 fi210 fi
Note:
See TracBrowser
for help on using the repository browser.