added tsfun and added a --modules option to the versionchanger script
This commit is contained in:
parent
cc6b9d3d81
commit
cf716c4049
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
9
dlls/ts/tsfun/svn_version.h
Normal file
9
dlls/ts/tsfun/svn_version.h
Normal 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_
|
9
dlls/ts/tsfun/svn_version.tpl
Normal file
9
dlls/ts/tsfun/svn_version.tpl
Normal 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_
|
@ -92,3 +92,8 @@ out = svn_version.h
|
||||
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
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user