bug 1872 - refined version string
authorJohn Kern <johnk@symbian.org>
Wed, 03 Mar 2010 14:30:47 -0800
changeset 217 27fd31e7f051
parent 216 914d053d42b1
child 218 d6dd3cce46a6
bug 1872 - refined version string
scripts/shepard.sh
--- a/scripts/shepard.sh	Wed Mar 03 09:56:03 2010 -0800
+++ b/scripts/shepard.sh	Wed Mar 03 14:30:47 2010 -0800
@@ -5,7 +5,7 @@
 SCRIPTS_DIR=/home/symbian/wrttools/scripts
 BASE_DIR=/home/symbian/scratch/build_dir
 DAY_OF_YEAR=`date +%j`
-ECLIPSE_TIMESTAMP=`date +%Y%m%d%H%M%S`
+ECLIPSE_TIMESTAMP=`date +%Y%m%d%H%M%S`-${BUILD_NUMBER:-NO_BUILD_NUMBER}
 HG_CMD=/usr/local/bin/hg
 ANT_CMD=/usr/local/apache-ant-1.8.0/bin/ant
 
@@ -34,12 +34,12 @@
 # bug fix for 1872. [testcase: go to about box. click on installation details.  Do you see an error? ] 
 for f in `find ${SOURCE_DIR} -name MANIFEST.MF`
 do
-	cat $f | sed -e s#\.qualifier##g > ${f}
+	cat $f | sed -e s#qualifier#"${ECLIPSE_TIMESTAMP}"#g > ${f}
 done
 
 # wrt-ide.product has the orginal reference to 1.0.0.qualifier. Try deleting .qualifier 
 prod_file=${SOURCE_DIR}/org.symbian.tools.wrttools.product/wrt-ide.product
-cat $prod_file | sed -e s#\.qualifier##g > $prod_file
+cat $prod_file | sed -e s#qualifier#"${ECLIPSE_TIMESTAMP}"#g > $prod_file
 
 ${ANT_CMD} -DbuildDirectory=${BUILD_DIR} -DsourceDirectory=${SOURCE_DIR}