Updated upstream
This commit is contained in:
parent
43dbdf3d81
commit
c188369631
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#$Id$
|
#$Id$
|
||||||
#Copyright (c) 2011-2014 Pierre Pronchery <khorben@defora.org>
|
#Copyright (c) 2011-2015 Pierre Pronchery <khorben@defora.org>
|
||||||
#
|
#
|
||||||
#Redistribution and use in source and binary forms, with or without
|
#Redistribution and use in source and binary forms, with or without
|
||||||
#modification, are permitted provided that the following conditions are met:
|
#modification, are permitted provided that the following conditions are met:
|
||||||
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
|
|
||||||
#variables
|
#variables
|
||||||
|
PROGNAME="appbroker.sh"
|
||||||
#executables
|
#executables
|
||||||
APPBROKER="AppBroker"
|
APPBROKER="AppBroker"
|
||||||
|
|
||||||
|
@ -33,18 +34,21 @@ APPBROKER="AppBroker"
|
||||||
#usage
|
#usage
|
||||||
_usage()
|
_usage()
|
||||||
{
|
{
|
||||||
echo "Usage: appbroker.sh target" 1>&2
|
echo "Usage: $APPBROKER target" 1>&2
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#main
|
#main
|
||||||
clean=0
|
clean=0
|
||||||
while getopts "cP:" name; do
|
while getopts "cO:P:" name; do
|
||||||
case "$name" in
|
case "$name" in
|
||||||
c)
|
c)
|
||||||
clean=1
|
clean=1
|
||||||
;;
|
;;
|
||||||
|
O)
|
||||||
|
export "${OPTARG%%=*}"="${OPTARG#*=}"
|
||||||
|
;;
|
||||||
P)
|
P)
|
||||||
#we can ignore it
|
#we can ignore it
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user