added tsfun and added a --modules option to the versionchanger script

This commit is contained in:
David Anderson 2007-03-12 22:33:43 +00:00
parent cc6b9d3d81
commit cf716c4049
6 changed files with 47 additions and 2 deletions

View File

@ -2771,7 +2771,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindLibrary(NULL, LibType_Class);
MF_AddLibraries(NULL, LibType_Class, NULL);
MF_RemoveLibraries(NULL);
MF_OverrideNatives(NULL);
MF_OverrideNatives(NULL, "");
}
#endif

View File

@ -3,9 +3,11 @@
#ifndef __MODULECONFIG_H__
#define __MODULECONFIG_H__
#include "svn_version.h"
// Module info
#define MODULE_NAME "TSFun Wrapper"
#define MODULE_VERSION "1.76"
#define MODULE_VERSION SVN_VERSION
#define MODULE_AUTHOR "AMX Mod X Dev Team"
#define MODULE_URL "http://www.amxmodx.org"
#define MODULE_LOGTAG "TSFUN"

View File

@ -0,0 +1,9 @@
#ifndef _INCLUDE_SVN_VERSION_H_
#define _INCLUDE_SVN_VERSION_H_
/** This file is auto-generated by build scripts. Do not edit it unless you know what you're doing. */
/** Do not commit the generated .h file, as it will only mess up SVN revision numbers. */
#define SVN_VERSION "1.8.0.2989"
#endif //_INCLUDE_SVN_VERSION_H_

View File

@ -0,0 +1,9 @@
#ifndef _INCLUDE_SVN_VERSION_H_
#define _INCLUDE_SVN_VERSION_H_
/** This file is auto-generated by build scripts. Do not edit it unless you know what you're doing. */
/** Do not commit the generated .h file, as it will only mess up SVN revision numbers. */
#define SVN_VERSION "$PMAJOR$.$PMINOR$.$PREVISION$.$LOCAL_BUILD$"
#endif //_INCLUDE_SVN_VERSION_H_

View File

@ -91,4 +91,9 @@ out = svn_version.h
[tsx]
folder = dlls/ts/tsx
in = svn_version.tpl
out = svn_version.h
[tsfun]
folder = dlls/ts/tsfun
in = svn_version.tpl
out = svn_version.h

View File

@ -9,6 +9,7 @@ our %arguments =
'build' => undef,
'svnrev' => 'global',
'path' => '',
'modules' => '',
);
my $arg;
@ -19,6 +20,20 @@ foreach $arg (@ARGV)
$arguments{$arg[0]} = $arg[1];
}
our (%allowed);
if ($arguments{'modules'} ne "")
{
my @l = split(/,/, $arguments{'modules'});
my $i;
for ($i=0; $i<=$#l; $i++)
{
$allowed{$l[$i]} = 1;
}
} else {
$allowed{'*'} = 1;
}
#Set up path info
if ($arguments{'path'} ne "")
{
@ -102,6 +117,10 @@ while ( ($cur_module, $mod_i) = each(%modules) )
{
next;
}
if (!$allowed{'*'} && !$allowed{$cur_module})
{
next;
}
#Prepare path
my %mod = %{$mod_i};
my $infile = $mod{'in'};
@ -163,3 +182,4 @@ sub GetRevision
}
return $rev;
}