[hipl-commit] [trunk] Rev 3790: Add a second parameter to pass the branch location within the HIPL repository.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 3 Mar 2010 19:31:25 +0200

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: Wed Mar 03 18:31:06 2010 +0100
Revision: 3790
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Add a second parameter to pass the branch location within the HIPL repository.

Modified:
  M  tools/hipl_autobuild

=== modified file 'tools/hipl_autobuild'
--- tools/hipl_autobuild        2010-03-03 16:48:08 +0000
+++ tools/hipl_autobuild        2010-03-03 17:31:06 +0000
@@ -5,12 +5,14 @@
 # If the HIPL_NOTIFICATION_EMAIL environment variable is set to a suitable 
value
 # for the user running this script, then email will be sent in case of failure.
 
-BRANCH=$1
+BRANCH_NAME=$1
+BRANCH_LOCATION=$2
+
 BUILD_DIR=$HOME/tmp/hipl_autobuild
-BRANCH_URL=http://hipl.hiit.fi/hipl/hipl-bzr/$BRANCH
-CHECKOUT_DIR=$BUILD_DIR/$(date +"%Y-%m-%d-%H%M")_$BRANCH
+BRANCH_URL=http://hipl.hiit.fi/hipl/hipl-bzr/$BRANCH_LOCATION
+CHECKOUT_DIR=$BUILD_DIR/$(date +"%Y-%m-%d-%H%M")_$BRANCH_NAME
 BRANCH_REVISION=$(bzr revno -q $BRANCH_URL)
-BRANCH_REVISION_FILE=$BUILD_DIR/HIPL_REVISION_$BRANCH
+BRANCH_REVISION_FILE=$BUILD_DIR/HIPL_REVISION_$BRANCH_NAME
 AUTOBUILD_REVISION=$(cat $BRANCH_REVISION_FILE)
 AUTOBUILD_SCRIPT="$CHECKOUT_DIR/tools/hipl_autobuild"

Other related posts:

  • » [hipl-commit] [trunk] Rev 3790: Add a second parameter to pass the branch location within the HIPL repository. - Diego Biurrun