compiler now gets its own versioning, finally

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40805
This commit is contained in:
David Anderson 2007-05-15 04:59:48 +00:00
parent c9bc46e770
commit 98bf124013
6 changed files with 62 additions and 17 deletions

View File

@ -27,3 +27,8 @@ out = svn_version.h
folder = extensions/threader
in = svn_version.tpl
out = svn_version.h
[compiler]
folder = sourcepawn/compiler
in = svn_version.tpl
out = svn_version.h

View File

@ -13,17 +13,14 @@ AppIcon ICON "pawn.ico"
* All strings MUST have an explicit \0. See the Windows SDK documentation
* for details on version information and the VERSIONINFO structure.
*/
#define VERSION 1
#define REVISION 0
#define BUILD SVN_REVISION
#define VERSIONSTR SVN_REVISION_STRING
#define VERSIONNAME "smcomp.exe\0"
#define VERSIONDESCRIPTION "SourcePawn Compiler\0"
#define VERSIONPRODUCTNAME "smcomp\0"
VS_VERSION_INFO VERSIONINFO
FILEVERSION VERSION, REVISION, BUILD, 0
PRODUCTVERSION VERSION, REVISION, BUILD, 0
FILEVERSION SVN_FILE_VERSION
PRODUCTVERSION SVN_FILE_VERSION
FILEFLAGSMASK 0x0000003FL
FILEFLAGS 0
#if defined(WIN32)
@ -39,12 +36,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "(C)1998-2006 ITB CompuPhase, AlliedModders LLC\0"
VALUE "FileDescription", VERSIONDESCRIPTION
VALUE "FileVersion", VERSIONSTR
VALUE "FileVersion", SVN_FULL_VERSION
VALUE "InternalName", VERSIONNAME
VALUE "LegalCopyright", "(C)1998-2006 ITB CompuPhase, AlliedModders LLC\0"
VALUE "OriginalFilename", VERSIONNAME
VALUE "ProductName", VERSIONPRODUCTNAME
VALUE "ProductVersion", VERSIONSTR
VALUE "ProductVersion", SVN_FULL_VERSION
END
END

View File

@ -330,6 +330,10 @@
RelativePath="..\sc7.scp"
>
</File>
<File
RelativePath="..\svn_version.tpl"
>
</File>
</Filter>
<Filter
Name="zlib"

View File

@ -1180,8 +1180,8 @@ static void setconfig(char *root)
static void setcaption(void)
{
pc_printf("SourcePawn Compiler 1.0.0." SVN_REVISION_STRING "\n");
pc_printf("Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2006 AlliedModders, LLC\n\n");
pc_printf("SourcePawn Compiler " SVN_FULL_VERSION "\n");
pc_printf("Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2007 AlliedModders, LLC\n\n");
}
static void about(void)

View File

@ -1,11 +1,25 @@
/** This file is autogenerated by build scripts */
/**
* vim: set ts=4 :
* ===============================================================
* SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
* ===============================================================
*
* This file is not open source and may not be copied without explicit
* written permission of AlliedModders LLC. This file may not be redistributed
* in whole or significant part.
* For information, see LICENSE.txt or http://www.sourcemod.net/license.php
*
* Version: $Id$
*/
#ifndef _INCLUDE_SVN_VERSION_H_
#define _INCLUDE_SVN_VERSION_H_
#ifndef _INCLUDE_SOURCEMOD_VERSION_H_
#define _INCLUDE_SOURCEMOD_VERSION_H_
#define SVN_REVISION 416
#define SVN_REVISION_STRING "416"
#define SVN_FILE_VERSION 1,0,0,416
/**
* @file Contains SourceMod version information.
*/
#endif //_INCLUDE_SVN_VERSION_H_
#define SVN_FULL_VERSION "1.0.0.800"
#define SVN_FILE_VERSION 1,0,0,800
#endif //_INCLUDE_SOURCEMOD_VERSION_H_

View File

@ -0,0 +1,25 @@
/**
* vim: set ts=4 :
* ===============================================================
* SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
* ===============================================================
*
* This file is not open source and may not be copied without explicit
* written permission of AlliedModders LLC. This file may not be redistributed
* in whole or significant part.
* For information, see LICENSE.txt or http://www.sourcemod.net/license.php
*
* Version: $Id$
*/
#ifndef _INCLUDE_SOURCEMOD_VERSION_H_
#define _INCLUDE_SOURCEMOD_VERSION_H_
/**
* @file Contains SourceMod version information.
*/
#define SVN_FULL_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$.$GLOBAL_BUILD$"
#define SVN_FILE_VERSION $PMAJOR$,$PMINOR$,$PREVISION$,$GLOBAL_BUILD$
#endif //_INCLUDE_SOURCEMOD_VERSION_H_