| 123456789101112131415161718192021222324252627 | #!/usr/bin/env bash# 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 offdeclare -a optswhile [[ "$1" ]]; do	case "$1" in	-o|--owner) shift ;;	-g|--group) shift ;;	-s|--strip) ;;	*) opts+=("$1") ;;	esac	shiftdone# prefer ginstall if availableif [ -z "$(which ginstall 2>/dev/null)" ];then	install=/usr/bin/installelse	install=ginstallfi# do the actual callexec $install "${opts[@]}"
 |