[mapguide-internals] Version setting script

Jason Birch Jason.Birch at nanaimo.ca
Tue Apr 7 14:32:42 EDT 2009


Hi all,

Last night I committed a VBS script that can be used to update the build numbers in the source files.  It's not 100% yet, but it can probably be integrated into the build process to update the version number on published builds.

http://trac.osgeo.org/mapguide/browser/trunk/MgDev/updateversion.vbs

I have to write something similar for the Installer, or preferably figure out a way to pass properties to the installer build processes (WiX and NSIS).  This is important to figure out not only for naming the nightly releases, but to make managing multiple installer builds (localized versions, etc) easier.

I was unable to use batch files for this because of the regular expression, string, and file handling that were required.  After I wrote it, it occurred to me that using the PHP CLI may have been a better choice than CScript because it's available on all of the platforms we support.  If necessary, it won't be hard to re-write.

I have a question: Does the MapGuide web tier check to make sure that it is running the same version as the server?  If so, is this check exact, or is it only on the first three parts of the version (Major, Minor, Point)?  If it checks the full version number, I think this would require users to re-install both the Server and Web tiers to try out a new development build or patch, which may not be desirable. 

Jason



More information about the mapguide-internals mailing list