Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/hacketyhack
blob: 8390d67042f71f43ece15669a3dea48e406c6277 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

REALPATH=`readlink -f $0`

APPPATH="${REALPATH%/*}"
if [ "$APPPATH" = "shoes" ]; then
  APPPATH="."
fi
if [ "$APPPATH" = "." ]; then
  APPPATH=`pwd`
fi

# makeself changes the directory to /tmp/selfgzNNNNN.  if we're in
# an extracted archive, change back to the directory where we launched.
if [ `pwd | awk '{ sub(/[0-9]+/, ""); print }'` = "/tmp/selfgz" ]; then
  # fix the symlink, this is actually a bug in the minitar lib
  rm -f libruby.so.1.8
  ln -s libruby.so libruby.so.1.8
  cd "$OLDPWD"
fi
cd "$OLDPWD"
LD_LIBRARY_PATH=$APPPATH $APPPATH/hacketyhack-bin "$@"