uclibc-ng: update to 1.0.49
[openadk.git] / scripts / install
blob174d27d5afdcf000039a03da97371bd61f005a6a
1 #!/usr/bin/env bash
2 # This file is part of the OpenADK project. OpenADK is copyrighted
3 # material, please see the LICENCE file in the top-level directory.
5 # eliminate unwanted install flags:
6 # -o and -g require root as caller which we don't want
7 # -s is unwanted as we strip ourselfs if debugging is turned off
8 declare -a opts
9 while [[ "$1" ]]; do
10 case "$1" in
11 -o|--owner) shift ;;
12 -g|--group) shift ;;
13 -s|--strip) ;;
14 *) opts+=("$1") ;;
15 esac
16 shift
17 done
19 # prefer ginstall if available
20 if [ -z "$(which ginstall 2>/dev/null)" ];then
21 install=/usr/bin/install
22 else
23 install=ginstall
26 # do the actual call
27 exec $install "${opts[@]}"