added versioning to geoip
authorDavid Anderson <dvander@alliedmods.net>
Sat Mar 03 08:40:01 2007 +0000 (2007-03-03)
changeset 570c6b959fbef07
parent 569 e33a4b426b4a
child 571 6711ecac2831
added versioning to geoip
extensions/geoip/msvc8/geoip.vcproj
extensions/geoip/smsdk_config.h
extensions/geoip/svn_version.h
extensions/geoip/svn_version.tpl
extensions/geoip/version.rc
modules.versions
tools/versionchanger.pl
     1.1 --- a/extensions/geoip/msvc8/geoip.vcproj	Sat Mar 03 08:34:11 2007 +0000
     1.2 +++ b/extensions/geoip/msvc8/geoip.vcproj	Sat Mar 03 08:40:01 2007 +0000
     1.3 @@ -214,12 +214,20 @@
     1.4  				RelativePath="..\smsdk_ext.h"
     1.5  				>
     1.6  			</File>
     1.7 +			<File
     1.8 +				RelativePath="..\svn_version.h"
     1.9 +				>
    1.10 +			</File>
    1.11  		</Filter>
    1.12  		<Filter
    1.13  			Name="Resource Files"
    1.14  			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
    1.15  			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
    1.16  			>
    1.17 +			<File
    1.18 +				RelativePath="..\version.rc"
    1.19 +				>
    1.20 +			</File>
    1.21  		</Filter>
    1.22  	</Files>
    1.23  	<Globals>
     2.1 --- a/extensions/geoip/smsdk_config.h	Sat Mar 03 08:34:11 2007 +0000
     2.2 +++ b/extensions/geoip/smsdk_config.h	Sat Mar 03 08:40:01 2007 +0000
     2.3 @@ -20,10 +20,12 @@
     2.4  #ifndef _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
     2.5  #define _INCLUDE_SOURCEMOD_EXTENSION_CONFIG_H_
     2.6  
     2.7 +#include "svn_version.h"
     2.8 +
     2.9  /* Basic information exposed publically */
    2.10  #define SMEXT_CONF_NAME			"GeoIP"
    2.11  #define SMEXT_CONF_DESCRIPTION	"NO IDEA WHAT THIS MODULE DOES" //:TODO:
    2.12 -#define SMEXT_CONF_VERSION		"0.0.0.0"
    2.13 +#define SMEXT_CONF_VERSION		SVN_FULL_VERSION
    2.14  #define SMEXT_CONF_AUTHOR		"AlliedModders"
    2.15  #define SMEXT_CONF_URL			"http://www.sourcemod.net/"
    2.16  #define SMEXT_CONF_LOGTAG		"GEOIP"
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/extensions/geoip/svn_version.h	Sat Mar 03 08:40:01 2007 +0000
     3.3 @@ -0,0 +1,12 @@
     3.4 +/**
     3.5 + * Autogenerated by build scripts
     3.6 + */
     3.7 +
     3.8 +#ifndef _INCLUDE_GEOIP_VERSION_H_
     3.9 +#define _INCLUDE_GEOIP_VERSION_H_
    3.10 +
    3.11 +
    3.12 +#define SVN_FULL_VERSION	"1.0.0.431"
    3.13 +#define SVN_FILE_VERSION	1,0,0,431
    3.14 +
    3.15 +#endif //_INCLUDE_GEOIP_VERSION_H_
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/extensions/geoip/svn_version.tpl	Sat Mar 03 08:40:01 2007 +0000
     4.3 @@ -0,0 +1,12 @@
     4.4 +/**
     4.5 + * Autogenerated by build scripts
     4.6 + */
     4.7 +
     4.8 +#ifndef _INCLUDE_GEOIP_VERSION_H_
     4.9 +#define _INCLUDE_GEOIP_VERSION_H_
    4.10 +
    4.11 +
    4.12 +#define SVN_FULL_VERSION	"$PMAJOR$.$PMINOR$.$PREVISION$.$LOCAL_BUILD$"
    4.13 +#define SVN_FILE_VERSION	$PMAJOR$,$PMINOR$,$PREVISION$,$LOCAL_BUILD$
    4.14 +
    4.15 +#endif //_INCLUDE_GEOIP_VERSION_H_
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/extensions/geoip/version.rc	Sat Mar 03 08:40:01 2007 +0000
     5.3 @@ -0,0 +1,104 @@
     5.4 +// Microsoft Visual C++ generated resource script.
     5.5 +//
     5.6 +//#include "resource.h"
     5.7 +
     5.8 +#define APSTUDIO_READONLY_SYMBOLS
     5.9 +/////////////////////////////////////////////////////////////////////////////
    5.10 +//
    5.11 +// Generated from the TEXTINCLUDE 2 resource.
    5.12 +//
    5.13 +#include "winres.h"
    5.14 +
    5.15 +#include "svn_version.h"
    5.16 +
    5.17 +/////////////////////////////////////////////////////////////////////////////
    5.18 +#undef APSTUDIO_READONLY_SYMBOLS
    5.19 +
    5.20 +/////////////////////////////////////////////////////////////////////////////
    5.21 +// English (U.S.) resources
    5.22 +
    5.23 +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
    5.24 +#ifdef _WIN32
    5.25 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
    5.26 +#pragma code_page(1252)
    5.27 +#endif //_WIN32
    5.28 +
    5.29 +/////////////////////////////////////////////////////////////////////////////
    5.30 +//
    5.31 +// Version
    5.32 +//
    5.33 +
    5.34 +VS_VERSION_INFO VERSIONINFO
    5.35 + FILEVERSION  SVN_FILE_VERSION
    5.36 + PRODUCTVERSION SVN_FILE_VERSION
    5.37 + FILEFLAGSMASK 0x17L
    5.38 +#ifdef _DEBUG
    5.39 + FILEFLAGS 0x1L
    5.40 +#else
    5.41 + FILEFLAGS 0x0L
    5.42 +#endif
    5.43 + FILEOS 0x4L
    5.44 + FILETYPE 0x2L
    5.45 + FILESUBTYPE 0x0L
    5.46 +BEGIN
    5.47 +    BLOCK "StringFileInfo"
    5.48 +    BEGIN
    5.49 +        BLOCK "000004b0"
    5.50 +        BEGIN
    5.51 +            VALUE "Comments", "GeoIP Extension"
    5.52 +            VALUE "FileDescription", "SourceMod GeoIP Extension"
    5.53 +            VALUE "FileVersion", SVN_FULL_VERSION
    5.54 +            VALUE "InternalName", "sourceMod GeoIP Extension"
    5.55 +            VALUE "LegalCopyright", "Copyright (c) 2004-2007, AlliedModders LLC"
    5.56 +            VALUE "OriginalFilename", "geoip.ext.dll"
    5.57 +            VALUE "ProductName", "SourceMod GeoIP Extension"
    5.58 +            VALUE "ProductVersion", SVN_FULL_VERSION
    5.59 +        END
    5.60 +    END
    5.61 +    BLOCK "VarFileInfo"
    5.62 +    BEGIN
    5.63 +        VALUE "Translation", 0x0, 1200
    5.64 +    END
    5.65 +END
    5.66 +
    5.67 +
    5.68 +#ifdef APSTUDIO_INVOKED
    5.69 +/////////////////////////////////////////////////////////////////////////////
    5.70 +//
    5.71 +// TEXTINCLUDE
    5.72 +//
    5.73 +
    5.74 +1 TEXTINCLUDE 
    5.75 +BEGIN
    5.76 +    "resource.h\0"
    5.77 +END
    5.78 +
    5.79 +2 TEXTINCLUDE 
    5.80 +BEGIN
    5.81 +    "#include ""winres.h""\r\n"
    5.82 +    "\0"
    5.83 +END
    5.84 +
    5.85 +3 TEXTINCLUDE 
    5.86 +BEGIN
    5.87 +    "\r\n"
    5.88 +    "\0"
    5.89 +END
    5.90 +
    5.91 +#endif    // APSTUDIO_INVOKED
    5.92 +
    5.93 +#endif    // English (U.S.) resources
    5.94 +/////////////////////////////////////////////////////////////////////////////
    5.95 +
    5.96 +
    5.97 +
    5.98 +#ifndef APSTUDIO_INVOKED
    5.99 +/////////////////////////////////////////////////////////////////////////////
   5.100 +//
   5.101 +// Generated from the TEXTINCLUDE 3 resource.
   5.102 +//
   5.103 +
   5.104 +
   5.105 +/////////////////////////////////////////////////////////////////////////////
   5.106 +#endif    // not APSTUDIO_INVOKED
   5.107 +
     6.1 --- a/modules.versions	Sat Mar 03 08:34:11 2007 +0000
     6.2 +++ b/modules.versions	Sat Mar 03 08:40:01 2007 +0000
     6.3 @@ -12,3 +12,8 @@
     6.4  folder = sourcepawn/jit/x86
     6.5  in = jit_version.tpl
     6.6  out = jit_version.h
     6.7 +
     6.8 +[geoip]
     6.9 +folder = extensions/geoip
    6.10 +in = svn_version.tpl
    6.11 +out = svn_version.h
     7.1 --- a/tools/versionchanger.pl	Sat Mar 03 08:34:11 2007 +0000
     7.2 +++ b/tools/versionchanger.pl	Sat Mar 03 08:40:01 2007 +0000
     7.3 @@ -151,7 +151,6 @@
     7.4  	} else {
     7.5  		$rev = `svnversion --committed $path`;
     7.6  	}
     7.7 -	print "$path $rev\n";
     7.8  	if ($rev =~ /exported/)
     7.9  	{
    7.10  		die "Path specified is not a working copy\n";