#!/bin/bash
set -e
echo "build executables for maemo"
cd ..
BUILD_DIR="maemo"
MODE="-release"
function build() {
echo "copy config $BUILD_DIR/$1 -> config.h"
cp "$BUILD_DIR/$1" "config.h"
./build.sh "$MODE" "$BUILD_DIR/$2"
}
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