diff --git a/data/appbroker.sh b/data/appbroker.sh index 5951090..77d823e 100755 --- a/data/appbroker.sh +++ b/data/appbroker.sh @@ -1,6 +1,6 @@ #!/bin/sh #$Id$ -#Copyright (c) 2011-2014 Pierre Pronchery +#Copyright (c) 2011-2015 Pierre Pronchery # #Redistribution and use in source and binary forms, with or without #modification, are permitted provided that the following conditions are met: @@ -25,6 +25,7 @@ #variables +PROGNAME="appbroker.sh" #executables APPBROKER="AppBroker" @@ -33,18 +34,21 @@ APPBROKER="AppBroker" #usage _usage() { - echo "Usage: appbroker.sh target" 1>&2 + echo "Usage: $APPBROKER target" 1>&2 return 1 } #main clean=0 -while getopts "cP:" name; do +while getopts "cO:P:" name; do case "$name" in c) clean=1 ;; + O) + export "${OPTARG%%=*}"="${OPTARG#*=}" + ;; P) #we can ignore it ;;