summaryrefslogtreecommitdiff
path: root/cpp/makebindist.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/makebindist.py')
-rwxr-xr-xcpp/makebindist.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/cpp/makebindist.py b/cpp/makebindist.py
index 930058b00cc..79b2b235a9f 100755
--- a/cpp/makebindist.py
+++ b/cpp/makebindist.py
@@ -1028,13 +1028,21 @@ def main():
# need to rely on the archive being in the sources
# directory.
#
- os.system('cp ' + sources + '/Ice-' + version + '-demos.tar.gz /usr/src/redhat/SOURCES')
- os.system('cp ' + sources + '/Ice-' + version + '-demos.tar.gz ' + installDir)
- os.system('cp ' + sources + '/Ice*.tar.gz /usr/src/redhat/SOURCES')
+ shutil.copy(sources + '/Ice-' + version + '-demos.tar.gz', '/usr/src/redhat/SOURCES')
+ shutil.copy(sources + '/Ice-' + version + '-demos.tar.gz ', installDir)
+ iceArchives = glob.glob(sources + '/Ice*' + version + '.gz')
+ for f in iceArchives:
+ shutil.copy(f, 'usr/src/redhat/SOURCES')
RPMTools.createRPMSFromBinaries64(buildDir, installDir, version, soVersion)
else:
- os.system('cp ' + installDir + '/Ice-' + version + '-demos.tar.gz /usr/src/redhat/SOURCES')
- os.system('cp ' + sources + '/Ice*.tar.gz /usr/src/redhat/SOURCES')
+ shutil.copy(installDir + '/Ice-' + version + '-demos.tar.gz', '/usr/src/redhat/SOURCES')
+ shutil.copy(sources + '/php-5.0.4.tar.bz2', '/usr/src/redhat/SOURCES')
+ shutil.copy(installFiles + '/thirdparty/php/ice.ini', '/usr/src/redhat/SOURCES')
+ shutil.copy(installFiles + '/thirdparty/php/configure.5.0.4.gz',
+ '/usr/src/redhat/SOURCES')
+ iceArchives = glob.glob(sources + '/Ice*' + version + '.gz')
+ for f in iceArchives:
+ shutil.copy(f, 'usr/src/redhat/SOURCES')
RPMTools.createRPMSFromBinaries(buildDir, installDir, version, soVersion)
#