about summary refs log tree commit homepage
path: root/lei.sh
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-18 05:21:27 +0000
committerEric Wong <e@80x24.org>2020-12-19 09:32:08 +0000
commit223d66dfcf9d0915709e23a561322e8bb4a7fac6 (patch)
treefc7a54247afe9eef04c2afb8f50bd90c500df1a0 /lei.sh
parent2fe6af26d737773e0a7cafa5902360ab1309c807 (diff)
downloadpublic-inbox-223d66dfcf9d0915709e23a561322e8bb4a7fac6.tar.gz
This could've been done ages ago, but I rarely invoked
public-inbox-* commands from an interactive terminal
like I would with lei.
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..f1510a73
--- /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" || 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