diff options
-rw-r--r-- | ChangeLog.txt | 7 | ||||
-rw-r--r-- | linden/indra/SConstruct | 4 | ||||
-rwxr-xr-x | linden/indra/newview/viewer_manifest.py | 13 |
3 files changed, 19 insertions, 5 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index e69de29..a9b9ec6 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -0,0 +1,7 @@ | |||
1 | 2008-09-19 Jacek Antonelli <jacek.antonelli@gmail.com> | ||
2 | |||
3 | * linden/indra/SConstruct: | ||
4 | VWR-2865: New SConstruct flag to (not) make tarball after compiling. | ||
5 | For convenience until we switch to CMake. | ||
6 | * linden/indra/newview/viewer_manifest.py: | ||
7 | Ditto. | ||
diff --git a/linden/indra/SConstruct b/linden/indra/SConstruct index 9353317..5ca22e6 100644 --- a/linden/indra/SConstruct +++ b/linden/indra/SConstruct | |||
@@ -100,6 +100,7 @@ opts.AddOptions( | |||
100 | BoolOption('ELFIO', 'Enabled enhanced backtraces with libELFIO symbol extraction support', True), | 100 | BoolOption('ELFIO', 'Enabled enhanced backtraces with libELFIO symbol extraction support', True), |
101 | BoolOption('STANDALONE', 'Build using system packages (implies OPENSOURCE)', False), | 101 | BoolOption('STANDALONE', 'Build using system packages (implies OPENSOURCE)', False), |
102 | BoolOption('RUNTESTS', 'Run tests at end of compilation', True), | 102 | BoolOption('RUNTESTS', 'Run tests at end of compilation', True), |
103 | BoolOption('MAKE_PACKAGE', 'Create a package (tarball) after compiling "releasefordownload".', True), | ||
103 | BoolOption('OPENSOURCE', 'Build using only non-proprietary dependencies', True) # OPENSOURCE: do not edit this line | 104 | BoolOption('OPENSOURCE', 'Build using only non-proprietary dependencies', True) # OPENSOURCE: do not edit this line |
104 | ) | 105 | ) |
105 | optenv = Environment(options = opts) | 106 | optenv = Environment(options = opts) |
@@ -120,6 +121,7 @@ runtests = optenv['RUNTESTS'] | |||
120 | opensource = standalone or optenv['OPENSOURCE'] | 121 | opensource = standalone or optenv['OPENSOURCE'] |
121 | enable_fmod = not opensource and optenv['FMOD'] | 122 | enable_fmod = not opensource and optenv['FMOD'] |
122 | elfio = optenv['ELFIO'] | 123 | elfio = optenv['ELFIO'] |
124 | make_package = optenv['MAKE_PACKAGE'] | ||
123 | 125 | ||
124 | targets = [ target_param ] | 126 | targets = [ target_param ] |
125 | 127 | ||
@@ -717,6 +719,8 @@ for build_target in targets: | |||
717 | 'arch':arch} | 719 | 'arch':arch} |
718 | if login_channel: | 720 | if login_channel: |
719 | cmd += ' --login_channel=\'Second Life %s\'' % (login_channel) | 721 | cmd += ' --login_channel=\'Second Life %s\'' % (login_channel) |
722 | if not make_package: | ||
723 | cmd += ' --actions="copy"' | ||
720 | env.Command('newview/' + package_name, 'newview/viewer_manifest.py', cmd) | 724 | env.Command('newview/' + package_name, 'newview/viewer_manifest.py', cmd) |
721 | Depends('newview/' + package_name, output_bin + '-stripped') | 725 | Depends('newview/' + package_name, output_bin + '-stripped') |
722 | Depends('newview/' + package_name, output_crashlogger_bin + '-stripped') | 726 | Depends('newview/' + package_name, output_crashlogger_bin + '-stripped') |
diff --git a/linden/indra/newview/viewer_manifest.py b/linden/indra/newview/viewer_manifest.py index 27c12dd..ae25745 100755 --- a/linden/indra/newview/viewer_manifest.py +++ b/linden/indra/newview/viewer_manifest.py | |||
@@ -483,11 +483,14 @@ class LinuxManifest(ViewerManifest): | |||
483 | find %(dst)s -type f -perm 0400 | xargs chmod 0444; | 483 | find %(dst)s -type f -perm 0400 | xargs chmod 0444; |
484 | true""" % {'dst':self.get_dst_prefix() }) | 484 | true""" % {'dst':self.get_dst_prefix() }) |
485 | 485 | ||
486 | # temporarily move directory tree so that it has the right name in the tarfile | 486 | if("package" in self.args['actions'] or |
487 | self.run_command("mv %(dst)s %(inst)s" % {'dst':self.get_dst_prefix(),'inst':self.src_path_of(installer_name)}) | 487 | "unpacked" in self.args['actions']): |
488 | # --numeric-owner hides the username of the builder for security etc. | 488 | # temporarily move directory tree so that it has the right name in the tarfile |
489 | self.run_command('tar -C %(dir)s --numeric-owner -cjf %(inst_path)s.tar.bz2 %(inst_name)s' % {'dir':self.get_src_prefix(), 'inst_name': installer_name, 'inst_path':self.src_path_of(installer_name)}) | 489 | self.run_command("mv %(dst)s %(inst)s" % {'dst':self.get_dst_prefix(),'inst':self.src_path_of(installer_name)}) |
490 | self.run_command("mv %(inst)s %(dst)s" % {'dst':self.get_dst_prefix(),'inst':self.src_path_of(installer_name)}) | 490 | # --numeric-owner hides the username of the builder for security etc. |
491 | self.run_command('tar -C %(dir)s --numeric-owner -cjf %(inst_path)s.tar.bz2 %(inst_name)s' % {'dir':self.get_src_prefix(), 'inst_name': installer_name, 'inst_path':self.src_path_of(installer_name)}) | ||
492 | self.run_command("mv %(inst)s %(dst)s" % {'dst':self.get_dst_prefix(),'inst':self.src_path_of(installer_name)}) | ||
493 | |||
491 | 494 | ||
492 | class Linux_i686Manifest(LinuxManifest): | 495 | class Linux_i686Manifest(LinuxManifest): |
493 | def construct(self): | 496 | def construct(self): |