xmlwf 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #! /bin/bash
  2. # xmlwf/xmlwf - temporary wrapper script for .libs/xmlwf
  3. # Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
  4. #
  5. # The xmlwf/xmlwf 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. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15. # if CDPATH is set.
  16. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17. relink_command="(cd /home/pi/popufare/busunit/DIU/expat-2.0.1; { 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=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games\"; export PATH; gcc -I./lib -I. -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o \$progdir/\$file xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/unixfilemap.o ./.libs/libexpat.so -Wl,--rpath -Wl,/home/pi/popufare/busunit/DIU/expat-2.0.1/.libs)"
  18. # This environment variable determines our operation mode.
  19. if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
  20. # install mode needs the following variable:
  21. notinst_deplibs=' libexpat.la'
  22. else
  23. # When we are sourced in execute mode, $file and $echo are already set.
  24. if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
  25. echo="echo"
  26. file="$0"
  27. # Make sure echo works.
  28. if test "X$1" = X--no-reexec; then
  29. # Discard the --no-reexec flag, and continue.
  30. shift
  31. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  32. # Yippee, $echo works!
  33. :
  34. else
  35. # Restart under the correct shell, and then maybe $echo will work.
  36. exec /bin/bash "$0" --no-reexec ${1+"$@"}
  37. fi
  38. fi
  39. # Find the directory that this script lives in.
  40. thisdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  41. test "x$thisdir" = "x$file" && thisdir=.
  42. # Follow symbolic links until we get to the real thisdir.
  43. file=`ls -ld "$file" | /bin/sed -n 's/.*-> //p'`
  44. while test -n "$file"; do
  45. destdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  46. # If there was a directory component, then change thisdir.
  47. if test "x$destdir" != "x$file"; then
  48. case "$destdir" in
  49. [\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;
  50. *) thisdir="$thisdir/$destdir" ;;
  51. esac
  52. fi
  53. file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  54. file=`ls -ld "$thisdir/$file" | /bin/sed -n 's/.*-> //p'`
  55. done
  56. # Try to get the absolute directory name.
  57. absdir=`cd "$thisdir" && pwd`
  58. test -n "$absdir" && thisdir="$absdir"
  59. program=lt-'xmlwf'
  60. progdir="$thisdir/.libs"
  61. if test ! -f "$progdir/$program" || \
  62. { file=`ls -1dt "$progdir/$program" "$progdir/../$program" 2>/dev/null | /bin/sed 1q`; \
  63. test "X$file" != "X$progdir/$program"; }; then
  64. file="$$-$program"
  65. if test ! -d "$progdir"; then
  66. mkdir "$progdir"
  67. else
  68. rm -f "$progdir/$file"
  69. fi
  70. # relink executable if necessary
  71. if test -n "$relink_command"; then
  72. if relink_command_output=`eval $relink_command 2>&1`; then :
  73. else
  74. echo "$relink_command_output" >&2
  75. rm -f "$progdir/$file"
  76. exit 1
  77. fi
  78. fi
  79. mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
  80. { rm -f "$progdir/$program";
  81. mv -f "$progdir/$file" "$progdir/$program"; }
  82. rm -f "$progdir/$file"
  83. fi
  84. if test -f "$progdir/$program"; then
  85. if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
  86. # Run the actual program with our arguments.
  87. exec "$progdir/$program" ${1+"$@"}
  88. $echo "$0: cannot exec $program ${1+"$@"}"
  89. exit 1
  90. fi
  91. else
  92. # The program doesn't exist.
  93. $echo "$0: error: \`$progdir/$program' does not exist" 1>&2
  94. $echo "This script is just a wrapper for $program." 1>&2
  95. echo "See the libtool documentation for more information." 1>&2
  96. exit 1
  97. fi
  98. fi