about summary refs log tree commit homepage
path: root/dtas.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dtas.sh')
-rwxr-xr-xdtas.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/dtas.sh b/dtas.sh
new file mode 100755
index 0000000..1ceca15
--- /dev/null
+++ b/dtas.sh
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+# symlink this file to a directory in PATH to run dtas (or anything in bin/*)
+# without needing perms to install globally.  Used by "make symlink-install"
+p=$(realpath "$0" || readlink "$0"); # neither is POSIX, but common
+p=$(dirname "$p") c=$(basename "$0"); c="${c%.sh}"
+if test -x "$p/bin/$c"; then exec ${RUBY-ruby} -I"$p"/lib "$p/bin/$c" "$@";
+else exec ${PERL-perl} -I"$p"/lib "$p/script/$c" "$@"; fi
+: this script is too short to copyright