mockup_service 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #! /bin/sh
  2. # mockup_service - temporary wrapper script for .libs/mockup_service
  3. # Generated by ltmain.sh (GNU libtool) 2.2.6
  4. #
  5. # The mockup_service 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='/usr/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=""
  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=' ../../src/util/libgnunetutil.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/sh "$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" | /usr/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" | /usr/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='mockup_service'
  88. progdir="$thisdir/.libs"
  89. if test -f "$progdir/$program"; then
  90. # Add our own library path to DYLD_LIBRARY_PATH
  91. DYLD_LIBRARY_PATH="/Users/soufi/Career/Munich/TUM/MasterOfScience/Research/GNUnet/EclipseWorkspaceGNUnet/gnunet/src/util/.libs:$DYLD_LIBRARY_PATH"
  92. # Some systems cannot cope with colon-terminated DYLD_LIBRARY_PATH
  93. # The second colon is a workaround for a bug in BeOS R4 sed
  94. DYLD_LIBRARY_PATH=`$ECHO "X$DYLD_LIBRARY_PATH" | $Xsed -e 's/::*$//'`
  95. export DYLD_LIBRARY_PATH
  96. if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
  97. # Run the actual program with our arguments.
  98. exec "$progdir/$program" ${1+"$@"}
  99. $ECHO "$0: cannot exec $program $*" 1>&2
  100. exit 1
  101. fi
  102. else
  103. # The program doesn't exist.
  104. $ECHO "$0: error: \`$progdir/$program' does not exist" 1>&2
  105. $ECHO "This script is just a wrapper for $program." 1>&2
  106. echo "See the libtool documentation for more information." 1>&2
  107. exit 1
  108. fi
  109. fi