about summary refs log tree commit homepage
path: root/exe.sh
diff options
context:
space:
mode:
Diffstat (limited to 'exe.sh')
-rwxr-xr-xexe.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/exe.sh b/exe.sh
new file mode 100755
index 0000000..c3ee2d3
--- /dev/null
+++ b/exe.sh
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+# symlink this file to a directory in PATH to run anything in script/*
+# 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") # both are POSIX
+exec ${PERL-perl} -w -I"$p"/blib/lib -I"$p"/blib/arch \
+        "$p"/script/"${c%.sh}" "$@"
+: this script is too short to copyright