mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
Include SIP's license file too
This commit is contained in:
@@ -961,11 +961,16 @@ def updateLicenseFiles(cfg):
|
||||
# Copy the license files from wxWidgets
|
||||
mkpath('license')
|
||||
for filename in ['preamble.txt', 'licence.txt', 'lgpl.txt', 'gpl.txt']:
|
||||
copy_file(opj(cfg.WXDIR, 'docs', filename), opj('license',filename), update=1, verbose=1)
|
||||
copy_file(opj(cfg.WXDIR, 'docs', filename), opj('license',filename),
|
||||
update=1, verbose=1)
|
||||
|
||||
# Get the sip license too
|
||||
copy_file(opj('sip', 'siplib', 'LICENSE'), opj('license', 'sip-license.txt'),
|
||||
update=1, verbose=1)
|
||||
|
||||
# Combine the relevant files into a single LICENSE.txt file
|
||||
text = ''
|
||||
for filename in ['preamble.txt', 'licence.txt', 'lgpl.txt']:
|
||||
for filename in ['preamble.txt', 'licence.txt', 'lgpl.txt', 'sip-license.txt']:
|
||||
with open(opj('license', filename), 'r') as f:
|
||||
text += f.read() + '\n\n'
|
||||
with open('LICENSE.txt', 'w') as f:
|
||||
|
||||
Reference in New Issue
Block a user