about summary refs log tree commit homepage
path: root/lei.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lei.sh')
-rwxr-xr-xlei.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/lei.sh b/lei.sh
new file mode 100755
index 00000000..afb03f3e
--- /dev/null
+++ b/lei.sh
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+# symlink this file to a directory in PATH to run lei (or anything in script/*)
+# without needing perms to install globally.  Used by "make symlink-install"
+p=$(realpath "$0" 2>/dev/null || readlink "$0") # neither is POSIX, but common
+p=$(dirname "$p") c=$(basename "$0") # both are POSIX
+exec ${PERL-perl} -w -I"$p"/lib "$p"/script/"${c%.sh}" "$@"
+: this script is too short to copyright