Committer: Rene Hummen <rene.hummen@xxxxxxxxxxxxxxxxx> Date: 26/05/2010 at 22:34:55 Revision: 4603 Revision-id: rene.hummen@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: trunk Log: use similar version number matching as in pisa this change should also allow to increase version numbers without modification to the autobuilder. Modified: M tools/hipl_autobuild.sh === modified file 'tools/hipl_autobuild.sh' --- tools/hipl_autobuild.sh 2010-05-26 14:57:12 +0000 +++ tools/hipl_autobuild.sh 2010-05-26 19:33:26 +0000 @@ -31,7 +31,6 @@ BRANCH_REVISION=$(bzr revno -q $BRANCH_URL) BRANCH_REVISION_FILE=$BUILD_DIR/HIPL_REVISION_$BRANCH_NAME AUTOBUILD_REVISION=$(cat $BRANCH_REVISION_FILE) -VERSION=$(grep '^AC_INIT' configure.ac|cut -d'[' -f 3|cut -d']' -f1) # helper functions run_program() @@ -78,7 +77,7 @@ sort > file_list_checkout ./configure && make dist tar -tzf hipl-*.tar.gz | - sed -e 1d -e "s:hipl-${VERSION}/::" -e 's:/$::' -e '/file_list_checkout/d' -e '/version.h/d' | + sed -e 1d -e "s:hipl-[0-9.]*/::" -e 's:/$::' -e '/file_list_checkout/d' -e '/version.h/d' | sort > file_list_tarball run_program diff -u file_list_checkout file_list_tarball } @@ -132,8 +131,8 @@ CONFIGURATION="Scratchbox ARM crosscompile" cd $SCRATCHBOX_HOME || cleanup 1 -run_program "rm -rf hipl-${VERSION}* hipl_*.changes hipl_*.deb" -run_program "tar -xzf $CHECKOUT_DIR/hipl-${VERSION}.tar.gz" -run_program "$SCRATCHBOX_DIR/login -d hipl-$VERSION dpkg-buildpackage -rfakeroot -b" +run_program "rm -rf hipl-[0-9.]* hipl_*.changes hipl_*.deb" +run_program "tar -xzf $CHECKOUT_DIR/hipl-[0-9.]*.tar.gz" +run_program "$SCRATCHBOX_DIR/login -d hipl-[0-9.]* dpkg-buildpackage -rfakeroot -b" cleanup 0