[OpenLayers-Dev] including the version number *in* the header comments of OpenLayers.js file

Schuyler Erle schuyler at nocat.net
Sun May 4 14:28:12 EDT 2008


On Sun, 2008-05-04 at 03:26 -0400, Christopher Schmidt wrote:
> > 
> > When someone copies the file named "OpenLayers.js" and a dir called "img/"
> > into some project, it currently has no version number visible. 
> 
> OpenLayers.VERSION_NUMBER is in the file, and accessible in Javascript
> for that reason: this means that when I'm debugging a page, I don't even
> have to bother reading the file to get the version, I just open Firebug
> and type "OpenLayers.VERSION_NUMBER" in. In general, I know that I find
> that way simpler than opening another webpage and looking through it for
> a version.

SVN keyword substitution might be another answer.

http://svnbook.red-bean.com/en/1.0/ch07s02.html#svn-ch-7-sect-2.3.4

SDE




More information about the Dev mailing list