xmlcatalog 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. #! /bin/bash
  2. # xmlcatalog - temporary wrapper script for .libs/xmlcatalog
  3. # Generated by ltmain.sh (GNU libtool) 2.2.6
  4. #
  5. # The xmlcatalog program cannot be directly executed until all the libtool
  6. # libraries that it depends on are installed.
  7. #
  8. # This wrapper script should never be moved out of the build directory.
  9. # If it is, it will not operate correctly.
  10. # Sed substitution that helps us do robust quoting. It backslashifies
  11. # metacharacters that are still active within double-quoted strings.
  12. Xsed='/bin/sed -e 1s/^X//'
  13. sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. setopt NO_GLOB_SUBST
  22. else
  23. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  24. fi
  25. BIN_SH=xpg4; export BIN_SH # for Tru64
  26. DUALCASE=1; export DUALCASE # for MKS sh
  27. # The HP-UX ksh and POSIX shell print the target directory to stdout
  28. # if CDPATH is set.
  29. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  30. relink_command="(cd /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/libxml2-2.7.6; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; { test -z \"\${LD_LIBRARY_PATH+set}\" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; export LD_LIBRARY_PATH; }; }; PATH=/bin:/sbin:/usr/bin:/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/bin:usr/bin:ATH; export PATH; /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o \$progdir/\$file xmlcatalog.o ./.libs/libxml2.so -ldl -lz -lm -Wl,-rpath -Wl,/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/libxml2-2.7.6/.libs -Wl,-rpath -Wl,/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/libxml2-2.7.6/release/lib)"
  31. # This environment variable determines our operation mode.
  32. if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
  33. # install mode needs the following variables:
  34. generated_by_libtool_version='2.2.6'
  35. notinst_deplibs=' ./libxml2.la'
  36. else
  37. # When we are sourced in execute mode, $file and $ECHO are already set.
  38. if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
  39. ECHO="echo"
  40. file="$0"
  41. # Make sure echo works.
  42. if test "X$1" = X--no-reexec; then
  43. # Discard the --no-reexec flag, and continue.
  44. shift
  45. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  46. # Yippee, $ECHO works!
  47. :
  48. else
  49. # Restart under the correct shell, and then maybe $ECHO will work.
  50. exec /bin/bash "$0" --no-reexec ${1+"$@"}
  51. fi
  52. fi
  53. # Find the directory that this script lives in.
  54. thisdir=`$ECHO "X$file" | $Xsed -e 's%/[^/]*$%%'`
  55. test "x$thisdir" = "x$file" && thisdir=.
  56. # Follow symbolic links until we get to the real thisdir.
  57. file=`ls -ld "$file" | /bin/sed -n 's/.*-> //p'`
  58. while test -n "$file"; do
  59. destdir=`$ECHO "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60. # If there was a directory component, then change thisdir.
  61. if test "x$destdir" != "x$file"; then
  62. case "$destdir" in
  63. [\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;
  64. *) thisdir="$thisdir/$destdir" ;;
  65. esac
  66. fi
  67. file=`$ECHO "X$file" | $Xsed -e 's%^.*/%%'`
  68. file=`ls -ld "$thisdir/$file" | /bin/sed -n 's/.*-> //p'`
  69. done
  70. # Usually 'no', except on cygwin/mingw when embedded into
  71. # the cwrapper.
  72. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=no
  73. if test "$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR" = "yes"; then
  74. # special case for '.'
  75. if test "$thisdir" = "."; then
  76. thisdir=`pwd`
  77. fi
  78. # remove .libs from thisdir
  79. case "$thisdir" in
  80. *[\\/].libs ) thisdir=`$ECHO "X$thisdir" | $Xsed -e 's%[\\/][^\\/]*$%%'` ;;
  81. .libs ) thisdir=. ;;
  82. esac
  83. fi
  84. # Try to get the absolute directory name.
  85. absdir=`cd "$thisdir" && pwd`
  86. test -n "$absdir" && thisdir="$absdir"
  87. program=lt-'xmlcatalog'
  88. progdir="$thisdir/.libs"
  89. if test ! -f "$progdir/$program" ||
  90. { file=`ls -1dt "$progdir/$program" "$progdir/../$program" 2>/dev/null | /bin/sed 1q`; \
  91. test "X$file" != "X$progdir/$program"; }; then
  92. file="$$-$program"
  93. if test ! -d "$progdir"; then
  94. mkdir "$progdir"
  95. else
  96. rm -f "$progdir/$file"
  97. fi
  98. # relink executable if necessary
  99. if test -n "$relink_command"; then
  100. if relink_command_output=`eval $relink_command 2>&1`; then :
  101. else
  102. echo "$relink_command_output" >&2
  103. rm -f "$progdir/$file"
  104. exit 1
  105. fi
  106. fi
  107. mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
  108. { rm -f "$progdir/$program";
  109. mv -f "$progdir/$file" "$progdir/$program"; }
  110. rm -f "$progdir/$file"
  111. fi
  112. if test -f "$progdir/$program"; then
  113. if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
  114. # Run the actual program with our arguments.
  115. exec "$progdir/$program" ${1+"$@"}
  116. $ECHO "$0: cannot exec $program $*" 1>&2
  117. exit 1
  118. fi
  119. else
  120. # The program doesn't exist.
  121. $ECHO "$0: error: \`$progdir/$program' does not exist" 1>&2
  122. $ECHO "This script is just a wrapper for $program." 1>&2
  123. echo "See the libtool documentation for more information." 1>&2
  124. exit 1
  125. fi
  126. fi