summaryrefslogtreecommitdiff
path: root/scripts/exec-install.sh
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2021-11-30 17:26:22 +0000
committerStefan Eßer <se@FreeBSD.org>2021-11-30 17:26:22 +0000
commit23aff1240891b4ba4bb000345824ca0b87b9b3e3 (patch)
tree31dbbc9a32d24856e9514e788e8b31b7e965a2bf /scripts/exec-install.sh
parent6f49f5cdde1c62c4e5a743e895f3afe592b5c0e5 (diff)
Diffstat (limited to 'scripts/exec-install.sh')
-rwxr-xr-xscripts/exec-install.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/exec-install.sh b/scripts/exec-install.sh
index 25d56c6fc688..f36caa37e6f8 100755
--- a/scripts/exec-install.sh
+++ b/scripts/exec-install.sh
@@ -29,7 +29,7 @@
# Print usage and exit with an error.
usage() {
- printf "usage: %s install_dir exec_suffix\n" "$0" 1>&2
+ printf "usage: %s install_dir exec_suffix [bindir]\n" "$0" 1>&2
exit 1
}
@@ -49,7 +49,12 @@ shift
exec_suffix="$1"
shift
-bindir="$scriptdir/../bin"
+if [ "$#" -gt 0 ]; then
+ bindir="$1"
+ shift
+else
+ bindir="$scriptdir/../bin"
+fi
# Install or symlink, depending on the type of file. If it's a file, install it.
# If it's a symlink, create an equivalent in the install directory.