PluginBuilder
author Ruben Gonzalez <drifter01620@gmail.com>
Wed Oct 01 11:50:24 2014 -0400 (2014-10-01)
changeset 193 277c856152b0
permissions -rw-r--r--
Update linix CS:GO gamedata
[email protected]
     1
# vim: set ts=2 sw=2 tw=99 noet ft=python: 
[email protected]
     2
import os
[email protected]
     3
import os.path
[email protected]
     4
import ambuild.osutil as osutil
[email protected]
     5
import ambuild.command as command
[email protected]
     6
[email protected]
     7
files = [
[email protected]
     8
		'dm_basics.sp',
[email protected]
     9
		'dm_bot_quotas.sp',
[email protected]
    10
		'dm_equipment.sp',
[email protected]
    11
		'dm_preset_spawns.sp',
[email protected]
    12
		'dm_spawn_protection.sp'
[email protected]
    13
]
[email protected]
    14
[email protected]
    15
plugins = AMBuild.AddJob('plugins')
[email protected]
    16
[email protected]
    17
spcomp = os.path.join(CSSDM.smBinPath, 'addons', 'sourcemod', 'scripting', 'spcomp')
[email protected]
    18
includes = os.path.relpath(os.path.join(AMBuild.sourceFolder, 'scripting', 'include'),
[email protected]
    19
                           os.path.join(AMBuild.outputFolder, 'scripting'))
[email protected]
    20
[email protected]
    21
#Do the normal ones
[email protected]
    22
for file in files:
[email protected]
    23
	sp = os.path.join(AMBuild.sourceFolder, 'scripting', file)
[email protected]
    24
	args = [spcomp, '-i' + includes, sp]
[email protected]
    25
	plugins.AddCommand(command.DirectCommand(args))
[email protected]
    26
[email protected]
    27