[mapguide-commits] r5534 - branches/2.2/Installer/scripts

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sat Feb 5 10:01:34 EST 2011


Author: trevorwekel
Date: 2011-02-05 07:01:34 -0800 (Sat, 05 Feb 2011)
New Revision: 5534

Modified:
   branches/2.2/Installer/scripts/build.sh
Log:
Ticket #1535 Mapguide 2.2RC Linux It is not possible to obtain full version number
Fix build script for branches/2.2



Modified: branches/2.2/Installer/scripts/build.sh
===================================================================
--- branches/2.2/Installer/scripts/build.sh	2011-02-05 12:00:38 UTC (rev 5533)
+++ branches/2.2/Installer/scripts/build.sh	2011-02-05 15:01:34 UTC (rev 5534)
@@ -1,9 +1,11 @@
 #!/bin/bash
-BUILDNUM=2.2.0
+APIVERSION=2.2
+BUILDNUM=${APIVERSION}.0
 BUILDROOT=`pwd`
 INSTALLROOT=/usr/local/mapguideopensource-${BUILDNUM}
 LOCKFILEDIR=/var/lock/mgserver
 MGSOURCE=${BUILDROOT}/mgdev
+VERFILE=${MGSOURCE}/Common/ProductVersion.h
 SVNROOT="svn://svn.bld.mgproto.net"
 #SVNROOT="http://svn.osgeo.org"
 
@@ -13,10 +15,16 @@
 REVISION=`svn info ${SVNROOT}/mapguide/branches/2.2/MgDev | perl revnum.pl`
 echo ${REVISION} > revnum.txt
 echo "Building Revision ${BUILDNUM}.${REVISION}" 
-svn export -r ${REVISION} ${SVNROOT}/mapguide/branches/2.2/MgDev ${MGSOURCE}
+svn export -q -r ${REVISION} ${SVNROOT}/mapguide/branches/2.2/MgDev ${MGSOURCE}
 
 cd ${MGSOURCE}
 
+echo "#ifndef PRODUCTVERSION_H_" > ${VERFILE}
+echo "#define PRODUCTVERSION_H_" >> ${VERFILE}
+echo 'const STRING ProductVersion = L"'${BUILDNUM}'.'${REVISION}'";' >> ${VERFILE}
+echo 'const STRING ApiVersion     = L"'${APIVERSION}'";' >> ${VERFILE}
+echo '#endif' >> ${VERFILE}
+
 pushd ${MGSOURCE}/Oem/LinuxApt
 ./build_apt.sh --prefix ${INSTALLROOT} --with-tomcat
 popd



More information about the mapguide-commits mailing list