Newer version of the script upstream
This commit is contained in:
parent
25b9f8bab0
commit
186bfc1bdf
|
@ -24,6 +24,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#variables
|
||||||
|
#executables
|
||||||
|
APPBROKER="AppBroker"
|
||||||
|
|
||||||
|
|
||||||
#functions
|
#functions
|
||||||
#usage
|
#usage
|
||||||
_usage()
|
_usage()
|
||||||
|
@ -34,8 +39,12 @@ _usage()
|
||||||
|
|
||||||
|
|
||||||
#main
|
#main
|
||||||
while getopts P: name; do
|
clean=0
|
||||||
|
while getopts "cP:" name; do
|
||||||
case "$name" in
|
case "$name" in
|
||||||
|
c)
|
||||||
|
clean=1
|
||||||
|
;;
|
||||||
P)
|
P)
|
||||||
#we can ignore it
|
#we can ignore it
|
||||||
;;
|
;;
|
||||||
|
@ -51,5 +60,9 @@ if [ $# -ne 1 ]; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
APPINTERFACE="${1%%.h}.interface"
|
[ "$clean" -ne 0 ] && exit 0
|
||||||
AppBroker -o "$1" "$APPINTERFACE"
|
|
||||||
|
APPINTERFACE="$1"
|
||||||
|
APPINTERFACE="${APPINTERFACE##*/}"
|
||||||
|
APPINTERFACE="../data/${APPINTERFACE%%.h}.interface"
|
||||||
|
$APPBROKER -o "$1" "$APPINTERFACE"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user