summarylogtreecommitdiffstats
path: root/savage2.sh
diff options
context:
space:
mode:
authorSlashbunny2012-08-16 23:31:03 -0400
committerSlashbunny2012-08-16 23:31:03 -0400
commit526217fde1fe5bb846d61c84b09b9732b3b78ccc (patch)
treef5029ad7e9943e5316331fc69481ed2043df7b66 /savage2.sh
parent6efe06e1b2b1d58bbf1ebe24b0f6a8f11e28f6d8 (diff)
downloadaur-526217fde1fe5bb846d61c84b09b9732b3b78ccc.tar.gz
Updated savage2 to latest
Diffstat (limited to 'savage2.sh')
-rw-r--r--savage2.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/savage2.sh b/savage2.sh
new file mode 100644
index 000000000000..48372eb97aff
--- /dev/null
+++ b/savage2.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+dir=$0
+name=`basename $dir`
+if [ "$name" = "$dir" ]; then
+ OIFS=$IFS
+ IFS=:
+ for path in $PATH; do
+ if [ -x "$path/$name" ]; then break; fi
+ done
+ IFS=$OIFS
+ dir=$path/$name
+fi
+while [ -L "$dir" ]; do
+ dir=`readlink "$dir"`
+done
+cd "`dirname "$dir"`"
+./savage2.bin "$*"