------------------------------------------------------------ revno: 6274 committer: Diego Biurrun <diego@xxxxxxxxxx> branch nick: hipl timestamp: Wed 2012-02-01 17:21:28 +0100 message: autobuild: Skip OpenWrt and scratchbox checks if the dirs are not available. Now the autobuilder can more easily be run standalone from a vanilla HIPL Bazaar branch/checkout and will not produce errors if the environment does not have OpenWrt and MAEMO in the expected places. modified: tools/hipl_autobuild.sh -- lp:hipl https://code.launchpad.net/~hipl-core/hipl/trunk Your team HIPL core team is subscribed to branch lp:hipl. To unsubscribe from this branch go to https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'tools/hipl_autobuild.sh' --- tools/hipl_autobuild.sh 2012-02-01 15:35:41 +0000 +++ tools/hipl_autobuild.sh 2012-02-01 16:21:28 +0000 @@ -197,28 +197,33 @@ # other standard configurations. run_program "make -j bin" -# Compile HIPL within an OpenWrt checkout -CONFIGURATION="OpenWrt ARM crosscompile" -cd $OPENWRT_DIR || cleanup 1 -run_program "rm -f dl/hipl-*.tar.gz" -run_program "cp $CHECKOUT_DIR/hipl-*.tar.gz dl/" -run_program "rm -rf package/hipl" -run_program "cp -r $CHECKOUT_DIR/packaging/openwrt/hipl package/" -run_program "make -j package/hipl/clean V=99" -run_program "make -j package/hipl/install V=99" - - -# Crosscompile HIPL in a scratchbox environment. - -# scratchbox complains if USER is missing from the environment -export USER=$LOGNAME - -CONFIGURATION="Scratchbox ARM crosscompile" -cd $SCRATCHBOX_HOME || cleanup 1 -# Get fresh sources for compilation (in host environment). -run_program "tar -xzf $CHECKOUT_DIR/hipl-[0-9.]*.tar.gz" -# perform debian packaging (in maemo sdk env) -run_program "$SCRATCHBOX_DIR/login -d hipl-[0-9.]* ./configure" -run_program "$SCRATCHBOX_DIR/login -d hipl-[0-9.]* make deb" +if test -d $OPENWRT_DIR; then + # Compile HIPL within an OpenWrt checkout + CONFIGURATION="OpenWrt ARM crosscompile" + cd $OPENWRT_DIR || cleanup 1 + run_program "rm -f dl/hipl-*.tar.gz" + run_program "cp $CHECKOUT_DIR/hipl-*.tar.gz dl/" + run_program "rm -rf package/hipl" + run_program "cp -r $CHECKOUT_DIR/packaging/openwrt/hipl package/" + run_program "make -j package/hipl/clean V=99" + run_program "make -j package/hipl/install V=99" +else + echo No OpenWrt directory found, skipping OpenWrt check. +fi + +if test -d $ $SCRATCHBOX_HOME; then + # Crosscompile HIPL in a scratchbox environment. + # scratchbox complains if USER is missing from the environment + export USER=$LOGNAME + CONFIGURATION="Scratchbox ARM crosscompile" + cd $SCRATCHBOX_HOME || cleanup 1 + # Get fresh sources for compilation (in host environment). + run_program "tar -xzf $CHECKOUT_DIR/hipl-[0-9.]*.tar.gz" + # perform debian packaging (in maemo sdk env) + run_program "$SCRATCHBOX_DIR/login -d hipl-[0-9.]* ./configure" + run_program "$SCRATCHBOX_DIR/login -d hipl-[0-9.]* make deb" +else + echo No scratchbox directory found, skipping scratchbox check. +fi cleanup 0