1.1 --- a/PackageScript Sat Apr 16 00:41:25 2011 -0700
1.2 +++ b/PackageScript Sat Apr 16 01:16:39 2011 -0700
1.3 @@ -67,34 +67,48 @@
1.4 shutil.copy(self.fromFile, self.toPath)
1.5
1.6
1.7 -folders = [['addons', 'metamod'],
1.8 - ['addons', 'stripper'],
1.9 - ['addons', 'stripper', 'bin'],
1.10 - ['addons', 'stripper', 'dumps'],
1.11 - ['addons', 'stripper', 'maps']]
1.12 +folders = [['addons', 'cfg'],
1.13 + ['addons', 'cfg', 'cssdm'],
1.14 + ['addons', 'cfg', 'cssdm', 'extra'],
1.15 + ['addons', 'cfg', 'cssdm', 'maps'],
1.16 + ['addons', 'cfg', 'cssdm', 'spawns'],
1.17 + ['addons', 'sourcemod'],
1.18 + ['addons', 'sourcemod', 'extensions'],
1.19 + ['addons', 'sourcemod', 'gamedata'],
1.20 + ['addons', 'sourcemod', 'plugins'],
1.21 + ['addons', 'sourcemod', 'plugins', 'cssdm'],
1.22 + ['addons', 'sourcemod', 'scripting'],
1.23 + ['addons', 'sourcemod', 'scripting', 'include'],
1.24 + ['addons', 'sourcemod', 'translations']]
1.25
1.26 #Setup
1.27 job.AddCommand(DestroyPath(os.path.join(AMBuild.outputFolder, 'package')))
1.28 job.AddCommand(CreateFolders(folders))
1.29
1.30 -#Copiy Files
1.31 -job.AddCommand(CopyFile(os.path.join(AMBuild.sourceFolder, 'de_dust.cfg'),
1.32 - os.path.join('addons', 'stripper', 'maps')))
1.33 -job.AddCommand(CopyFile(os.path.join(AMBuild.sourceFolder, 'global_filters.cfg'),
1.34 - os.path.join('addons', 'stripper')))
1.35 -job.AddCommand(CopyFile(os.path.join(AMBuild.sourceFolder, 'stripper.vdf'),
1.36 - os.path.join('addons', 'metamod')))
1.37 +#Copy Files
1.38 +job.AddCommand(CopyFolder(['gamedata'], ['addons', 'sourcemod', 'gamedata']))
1.39 +job.AddCommand(CopyFolder(['scripting'], ['addons', 'sourcemod', 'scripting']))
1.40 +job.AddCommand(CopyFolder(['scripting', 'include'], ['addons', 'sourcemod', 'scripting', 'include']))
1.41 +job.AddCommand(CopyFolder(['translations'], ['addons', 'sourcemod', 'translations']))
1.42 +job.AddCommand(CopyFolder(['cfg'], ['addons', 'cfg', 'cssdm']))
1.43 +job.AddCommand(CopyFolder(['cfg', 'spawns'], ['addons', 'cfg', 'cssdm', 'spawns']))
1.44 +job.AddCommand(CopyFile(os.path.join(AMBuild.sourceFolder, 'license.txt'),
1.45 + os.path.join('addons', 'cfg', 'extra')))
1.46 +job.AddCommand(CopyFile(os.path.join(AMBuild.sourceFolder, 'changelog.txt'),
1.47 + os.path.join('addons', 'cfg', 'extra')))
1.48 +job.AddCommand(CopyFile(os.path.join(AMBuild.sourceFolder, 'credits.txt'),
1.49 + os.path.join('addons', 'cfg', 'extra')))
1.50
1.51 bincopies = []
1.52
1.53 def AddNormalLibrary(name, dest):
1.54 - dest = os.path.join('addons', 'stripper', dest)
1.55 + dest = os.path.join('addons', 'sourcemod', dest)
1.56 bincopies.append(CopyFile(os.path.join('..', name, name + osutil.SharedLibSuffix()), dest))
1.57 pdb_list.append(name + '\\' + name + '.pdb')
1.58
1.59 def AddHL2Library(name, dest):
1.60 - for i in Stripper.sdkInfo:
1.61 - sdk = Stripper.sdkInfo[i]
1.62 + for i in CSSDM.sdkInfo:
1.63 + sdk = CSSDM.sdkInfo[i]
1.64 if AMBuild.target['platform'] not in sdk['platform']:
1.65 continue
1.66 AddNormalLibrary(name + '.' + sdk['ext'], dest)
1.67 @@ -102,12 +116,7 @@
1.68 pdb_list = []
1.69
1.70 # Copy loader binaries
1.71 -if AMBuild.target['platform'] == 'linux':
1.72 - AddNormalLibrary('stripper_mm_i486', 'bin')
1.73 -else:
1.74 - AddNormalLibrary('stripper_mm', 'bin')
1.75 -AddNormalLibrary('stripper.core', 'bin')
1.76 -AddHL2Library('stripper', 'bin')
1.77 +AddNormalLibrary('cssdm.ext', 'extensions')
1.78
1.79 job.AddCommandGroup(bincopies)
1.80
1.81 @@ -117,4 +126,18 @@
1.82 pdblog.write(pdb + '\n')
1.83 pdblog.close()
1.84
1.85 +# Copy plugins
1.86 +plugins = [
1.87 + 'dm_basics',
1.88 + 'dm_bot_quotas',
1.89 + 'dm_equipment',
1.90 + 'dm_preset_spawns',
1.91 + 'dm_spawn_protection'
1.92 +]
1.93
1.94 +commands = []
1.95 +for plugin in plugins:
1.96 + commands.append(CopyFile(os.path.join('..', 'plugins', plugin + '.smx'),
1.97 + os.path.join('addons', 'sourcemod', 'plugins', 'cssdm')))
1.98 +job.AddCommandGroup(commands)
1.99 +