diff --git a/maemo/build.sh b/maemo/build.sh index 1696ddb..927a206 100755 --- a/maemo/build.sh +++ b/maemo/build.sh @@ -6,23 +6,20 @@ echo "build executables for maemo" cd .. BUILD_DIR="maemo" -MODE="-release" +ARGS="$*" function build() { echo "copy config $BUILD_DIR/$1 -> config.h" cp "$BUILD_DIR/$1" "config.h" - echo ./build.sh "$MODE" -target "$BUILD_DIR/$2" - ./build.sh "$MODE" -target "$BUILD_DIR/$2" + shift + local TARGET="$BUILD_DIR/$1" + shift + echo ./build.sh "$@" -target "$TARGET" + ./build.sh "$@" -target "$TARGET" } - -if [ "$1" = "-debug" ]; then - MODE="-debug" -fi - - -build config.h.dock coolkbd.dock -build config.h.bottom coolkbd.bottom -build config.h.top coolkbd.top +build config.h.dock coolkbd.dock "$@" +build config.h.bottom coolkbd.bottom "$@" +build config.h.top coolkbd.top "$@"