summaryrefslogtreecommitdiff
path: root/b4.sh
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-03-20 13:11:05 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-03-20 13:14:18 -0400
commiteb4e2cf91eee89a62c68de0e5332bf63a4cc0166 (patch)
treed95c2389a144afe65d66a714ccacf9fe7ff73b78 /b4.sh
parenta73d4e1986fb34b325bc4e39b46a8adb85fd5e4d (diff)
downloadb4-eb4e2cf91eee89a62c68de0e5332bf63a4cc0166.tar.gz
Move b4-wrapper.sh to b4.sh
Make the name a bit more convenient to invoke and document that it can be set as an alias. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4.sh')
-rwxr-xr-xb4.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/b4.sh b/b4.sh
new file mode 100755
index 0000000..cafeee1
--- /dev/null
+++ b/b4.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+#
+# Run b4 from a git checkout.
+#
+
+SCRIPT_TOP="${SCRIPT_TOP:-$(cd "${BASH_SOURCE%/*}" && pwd)}"
+
+exec env PYTHONPATH="${SCRIPT_TOP}" python3 "${SCRIPT_TOP}/b4/command.py" "${@}"