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

Author: fischer
Date: Fri Aug 14 11:56:52 2009
New Revision: 815

Log:
Latest pisa autobuild script, with support for openwrt!

Modified:
   trunk/tools/subversion/pisa_runautobuild

Modified: trunk/tools/subversion/pisa_runautobuild
==============================================================================
--- trunk/tools/subversion/pisa_runautobuild    Thu Aug 13 13:25:52 2009        
(r814)
+++ trunk/tools/subversion/pisa_runautobuild    Fri Aug 14 11:56:52 2009        
(r815)
@@ -6,6 +6,7 @@
 export PATH=$HOME/bin:$PATH
 BUILD_DIR=$HOME/autobuild
 NOTIFY="pisa@xxxxxxxxxxxxx"
+#NOTIFY="papierfalter@xxxxxxxxxxxxxx"
 
 run_program()
 {
@@ -31,10 +32,25 @@
     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_LAST_HEAD_REVISION) = $AUTOBUILD_VERSION ; 
then
+    if ! test $(cat $BUILD_DIR/PISA_HEAD_REVISION) = $AUTOBUILD_VERSION ; then
+       # 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
+       # Create tarball
+       run_program make -j16 dist 
+       PISA_TARBALL=$(ls pisa*tar.gz)
+       run_program cp $PISA_TARBALL $BUILD_DIR/openwrt/dl
+       # Patch the Pisa package OpenWRT Makefile
+       # We have no error handling here - we expect them to be caught
+       # as soon as make is called
+       WRT_PISA_VERSION=$(echo $PISA_TARBALL | cut -d . -f 1,2,3 | cut -d - -f 
2)
+       cd $BUILD_DIR/openwrt/package/pisa/
+       sed -i -e "s/PKG_VERSION:=.*/PKG_VERSION:=$WRT_PISA_VERSION/" Makefile
+       cd $BUILD_DIR/openwrt
+       # Build
+       run_program make -j16 V=99
     fi
-    echo $AUTOBUILD_VERSION > $BUILD_DIR/PISA_LAST_HEAD_REVISION
+    echo $AUTOBUILD_VERSION > $BUILD_DIR/PISA_HEAD_REVISION
     rm -rf "$CHECKOUT_DIR"
     rm -f "$LOCK_FILE"
 fi

Other related posts:

  • » [pisa-src] r815 - trunk/tools/subversion - fischer