7 VERSION=`tr -d '"' < ../version.txt`
8 BUILD_DIR=/home/user/dorian-auto/dorian-${VERSION}
9 SB_BUILD_DIR=/scratchbox/users/`id -un`${BUILD_DIR}
10 [ ! -d ${SB_BUILD_DIR} ] && { echo "Missing $SB_BUILD_DIR"; exit 1; }
11 chmod a+rx ${SB_BUILD_DIR}/pkg/maemo/build-scratchbox.sh
12 scratchbox fakeroot ${BUILD_DIR}/pkg/maemo/build-scratchbox.sh