[pisa-src] r902 - trunk/tools/subversion

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 02 Sep 2009 14:39:35 +0200

Author: biurrun
Date: Wed Sep  2 14:39:34 2009
New Revision: 902

Log:
Simplify condition that checks if a rebuild is necessary.

Modified:
   trunk/tools/subversion/pisa_runautobuild

Modified: trunk/tools/subversion/pisa_runautobuild
==============================================================================
--- trunk/tools/subversion/pisa_runautobuild    Wed Sep  2 14:30:40 2009        
(r901)
+++ trunk/tools/subversion/pisa_runautobuild    Wed Sep  2 14:39:34 2009        
(r902)
@@ -30,7 +30,7 @@
     svn co -q svn+ssh://pride/srv/projects/pisa/svn/trunk "$CHECKOUT_DIR"
     cd "$CHECKOUT_DIR"
     AUTOBUILD_VERSION=$(svnversion .)
-    if ! test $(cat $BUILD_DIR/PISA_HEAD_REVISION) = $AUTOBUILD_VERSION ; then
+    test $(cat $BUILD_DIR/PISA_HEAD_REVISION) != $AUTOBUILD_VERSION || cleanup 0
        # This commands test that our trunk compiles
         run_program ./autogen.sh && run_program ./configure && run_program 
make -j16
        # Now we are looking at the openwrt-build
@@ -51,7 +51,6 @@
        sed -i -e "s/PKG_VERSION:=.*/PKG_VERSION:=$WRT_PISA_VERSION/" 
package/pisa/Makefile
        # Build
        run_program make -j16 package/pisa-install V=99
-    fi
     echo $AUTOBUILD_VERSION > $BUILD_DIR/PISA_HEAD_REVISION
 
 cleanup 0

Other related posts:

  • » [pisa-src] r902 - trunk/tools/subversion - Diego Biurrun