Ship license files with builds.

This commit is contained in:
Scott Ehlert 2014-08-04 14:40:01 -05:00
parent 9c08b11a75
commit d1122b982c

View File

@ -14,6 +14,7 @@ ModPackages = {
} }
folder_list = [ folder_list = [
'base/addons/amxmodx',
'base/addons/amxmodx/configs', 'base/addons/amxmodx/configs',
'base/addons/amxmodx/data', 'base/addons/amxmodx/data',
'base/addons/amxmodx/data/lang', 'base/addons/amxmodx/data/lang',
@ -357,3 +358,17 @@ for datafile in datafiles:
source = os.path.join(builder.sourcePath, 'plugins', 'lang', datafile), source = os.path.join(builder.sourcePath, 'plugins', 'lang', datafile),
output_path = folder_map['base/addons/amxmodx/data/lang'] output_path = folder_map['base/addons/amxmodx/data/lang']
) )
# Copy license files
licenses = [
'ACKNOWLEDGEMENTS.txt',
'GPLv2.txt',
'GPLv3.txt',
'LICENSE.txt',
]
for license in licenses:
builder.AddCopy(
source = os.path.join(builder.sourcePath, 'public', 'licenses', license),
output_path = folder_map['base/addons/amxmodx']
)