From 223d66dfcf9d0915709e23a561322e8bb4a7fac6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 18 Dec 2020 05:21:27 +0000 Subject: build: add lei.sh + "make symlink-install" target This could've been done ages ago, but I rarely invoked public-inbox-* commands from an interactive terminal like I would with lei. --- lei.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 lei.sh (limited to 'lei.sh') 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 -- cgit v1.2.3-24-ge0c7