commit 9319b461b991544a392d3e7456279abde0c39d18 parent f2fa12caf1ff7f51defedffed9ae7faf75e6f748 Author: Louis Burda <quent.burda@gmail.com> Date: Thu, 2 Sep 2021 21:04:31 +0200 rename BINDIR to PREFIX, more standard Diffstat:
M | do.sh | | | 9 | +++++---- |
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/do.sh b/do.sh @@ -1,14 +1,15 @@ #!/bin/bash -BINDIR=${BINDIR:-/usr/bin} +PREFIX=${PREFIX:-/usr} +BINDIR=${BINDIR:-/bin} set -e if [ "$1" == "install" ]; then - cp patch.py "$DESTDIR/$BINDIR/spatch" - chmod +x "$DESTDIR/$BINDIR/spatch" + cp patch.py "$DESTDIR/$PREFIX/$BINDIR/spatch" + chmod +x "$DESTDIR/$PREFIX/$BINDIR/spatch" elif [ "$1" == "uninstall" ]; then - rm "$DESTDIR/$BINDIR/spatch" + rm "$DESTDIR/$PREFIX/$BINDIR/spatch" else echo "USAGE: do.sh (install|uninstall)" exit 1