# HG changeset patch # User BuildAdmin@LON-ENGBUILD89 # Date 1241530284 -3600 # Node ID f3475510d60ce84909f9962cc062c603f73b030d # Parent c1cbd33e46c0f24fe365121102b89a222063c176 Added script to automate package build steps diff -r c1cbd33e46c0 -r f3475510d60c build_package.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build_package.pl Tue May 05 14:31:24 2009 +0100 @@ -0,0 +1,107 @@ +#!/usr/bin/perl -w + +use strict; + +use Getopt::Long; +use File::Path; + +my $sBOOTSTRAP_DIR="D:\\Helium\\hlm-apps\\bootstrap"; +my $sJOB_BASE_DIR="D:\\fbf_project"; +my $sCONFIG_REPO="\\\\lon-engbuild87\\d\$\\mercurial\\fbf\\configs\\dario_dev"; +my $nLOCK_FILE_MAX_ATTEMPTS = 5; +my $sNUMBERS_FILE="\\\\lon-engbuild87\\d\$\\numbers.txt"; + +my $sProjectRepo = ''; +my $sJobLabel = ''; +my $nCmdLineNumber; +GetOptions(('label:s' => \$sJobLabel, 'project:s' => \$sProjectRepo, 'number:s' => \$nCmdLineNumber)); + +if (!$sJobLabel or !$sProjectRepo) +{ + print "Usage: build_package.pl