From eb4e2cf91eee89a62c68de0e5332bf63a4cc0166 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Fri, 20 Mar 2020 13:11:05 -0400 Subject: 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 --- README.rst | 9 ++++----- b4-wrapper.sh | 8 -------- b4.sh | 8 ++++++++ 3 files changed, 12 insertions(+), 13 deletions(-) delete mode 100755 b4-wrapper.sh create mode 100755 b4.sh diff --git a/README.rst b/README.rst index c85d4ff..d7a7743 100644 --- a/README.rst +++ b/README.rst @@ -22,12 +22,11 @@ python3 -m pip install --user --upgrade b4 Running from the checkout dir ----------------------------- -If you want to run from the checkout dir without installing the python package, -you can use the b4-wrapper.sh script. +If you want to run from the checkout dir without installing the python +package, you can use the included b4.sh wrapper. You can set it as an +alias in your .bash_profile:: -``` -${git_dir}/b4-wrapper.sh --help -``` + alias b4="$HOME/path/to/b4/b4.sh" Support ------- diff --git a/b4-wrapper.sh b/b4-wrapper.sh deleted file mode 100755 index cafeee1..0000000 --- a/b4-wrapper.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/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" "${@}" 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" "${@}" -- cgit v1.2.3