From 81a6d12db443985182c67dc812673cdfcc8a0769 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 7 Jan 2013 03:26:48 +0100 Subject: [PATCH] Code cleanup --- doc/scripts/appbroker.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/scripts/appbroker.sh b/doc/scripts/appbroker.sh index c98177d..c0708cc 100755 --- a/doc/scripts/appbroker.sh +++ b/doc/scripts/appbroker.sh @@ -1,6 +1,6 @@ #!/bin/sh #$Id$ -#Copyright (c) 2011 Pierre Pronchery +#Copyright (c) 2011-2013 Pierre Pronchery #All rights reserved. # #Redistribution and use in source and binary forms, with or without @@ -25,6 +25,11 @@ +#variables +#executables +APPBROKER="AppBroker" + + #functions #usage _usage() @@ -52,5 +57,7 @@ if [ $# -ne 1 ]; then exit $? fi -APPINTERFACE="${1%%.h}.interface" -AppBroker -o "$1" "$APPINTERFACE" +APPINTERFACE="$1" +APPINTERFACE="${APPINTERFACE##*/}" +APPINTERFACE="../data/${APPINTERFACE%%.h}.interface" +$APPBROKER -o "$1" "$APPINTERFACE"