8 # Needed to make symlinks/shortcuts work.
9 # the binaries must run with correct working directory
11 export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:.
12 exec ./$BINARY \"\$@\"
15 chmod a+x "$1/$TARGET"
17 # and then we must symlink to this
18 # can't be done from setup.xml because it would symlink the binary
19 if [ -n "$SETUP_SYMLINKSPATH" ] && [ -d "$SETUP_SYMLINKSPATH" ]
21 # the symlink might already exists, in case we will remove it
22 if [ -h "$SETUP_SYMLINKSPATH/$TARGET" ]
24 echo "Removing existing $TARGET symlink"
25 rm "$SETUP_SYMLINKSPATH/$TARGET"
27 echo "Installing symlink $SETUP_SYMLINKSPATH/$TARGET -> $1/$TARGET"
28 ln -s "$1/$TARGET" "$SETUP_SYMLINKSPATH/$TARGET"