summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbrodkorb@conet.de>2015-03-04 09:21:57 +0100
committerWaldemar Brodkorb <wbrodkorb@conet.de>2015-03-04 09:21:57 +0100
commit4fc74012b67cfc62c5481b8d7b6d95052f40c2bf (patch)
treed6f7c860195c63564d98f53c143acbf0082ea3ca /scripts
parent68b4cb5aaa95eb39401bcbaa7c517cfd31c3edcf (diff)
parent9919c4bc2f53037331313edace085c386c2af4cc (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install21
1 files changed, 19 insertions, 2 deletions
diff --git a/scripts/install b/scripts/install
index 0fe925d0f..174d27d5a 100755
--- a/scripts/install
+++ b/scripts/install
@@ -2,9 +2,26 @@
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
+# eliminate unwanted install flags:
+# -o and -g require root as caller which we don't want
+# -s is unwanted as we strip ourselfs if debugging is turned off
+declare -a opts
+while [[ "$1" ]]; do
+ case "$1" in
+ -o|--owner) shift ;;
+ -g|--group) shift ;;
+ -s|--strip) ;;
+ *) opts+=("$1") ;;
+ esac
+ shift
+done
+
+# prefer ginstall if available
if [ -z "$(which ginstall 2>/dev/null)" ];then
- /usr/bin/install "$@"
+ install=/usr/bin/install
else
- ginstall "$@"
+ install=ginstall
fi
+# do the actual call
+exec $install "${opts[@]}"