diff options
author | Brent Eagles <brent@zeroc.com> | 2005-11-02 19:16:45 +0000 |
---|---|---|
committer | Brent Eagles <brent@zeroc.com> | 2005-11-02 19:16:45 +0000 |
commit | 063ee392ae1a6e215bfe87232a6cab7b6163d559 (patch) | |
tree | a5517451f8f315c35ffd6109d89cf968b4b38631 /cpp/makebindist.py | |
parent | Removed file (diff) | |
download | ice-063ee392ae1a6e215bfe87232a6cab7b6163d559.tar.bz2 ice-063ee392ae1a6e215bfe87232a6cab7b6163d559.tar.xz ice-063ee392ae1a6e215bfe87232a6cab7b6163d559.zip |
reinsert config directory in demo distributions
Diffstat (limited to 'cpp/makebindist.py')
-rwxr-xr-x | cpp/makebindist.py | 50 |
1 files changed, 18 insertions, 32 deletions
diff --git a/cpp/makebindist.py b/cpp/makebindist.py index 79b2b235a9f..0df4aa004ba 100755 --- a/cpp/makebindist.py +++ b/cpp/makebindist.py @@ -152,6 +152,7 @@ def editMakeRules(filename, version): these files to make them appropriate to accompany binary distributions. ''' + print 'Editing file -> ' + filename state = 'header' reIceLocation = re.compile('^[a-z]*dir.*=\s*\$\(top_srcdir\)') @@ -234,7 +235,8 @@ def extractDemos(sources, buildDir, version, distro, demoDir): Ice""" cwd = os.getcwd() os.chdir(buildDir + "/demotree") - os.system("gzip -dc " + sources + "/" + distro + ".tar.gz | tar xf - " + distro + "/demo " + distro + "/certs") + print "gzip -dc " + sources + "/" + distro + ".tar.gz | tar xf - " + distro + "/demo " + distro + "/config " + distro + "/certs" + os.system("gzip -dc " + sources + "/" + distro + ".tar.gz | tar xf - " + distro + "/demo " + distro + "/config " + distro + "/certs") shutil.move(distro + "/demo", buildDir + "/Ice-" + version + "-demos/demo" + demoDir) @@ -248,6 +250,13 @@ def extractDemos(sources, buildDir, version, distro, demoDir): os.system("cp -pR " + distro + "/certs/* " + buildDir + "/Ice-" + version + "-demos/certs") # + # 'System' copying of files here because its just easier! We don't + # need any configuration out of the Python tree. + # + if not demoDir == "py": + os.system("cp " + distro + "/config/* " + buildDir + "/Ice-" + version + "-demos/config") + + # # Collect files to remove from the demo distribution. # remove = [] @@ -265,6 +274,14 @@ def extractDemos(sources, buildDir, version, distro, demoDir): if os.path.exists(fullpath): remove.append(fullpath) + basepath = os.path.join(buildDir, 'Ice-' + version + '-demos', 'config') + + if distro.startswith('Ice-'): + editMakeRules(os.path.join(basepath, 'Make.rules'), version) + + elif distro.startswith('IceCS-'): + editMakeRules(os.path.join(basepath, 'Make.rules.cs'), version) + # # Remove collected files. # @@ -366,37 +383,6 @@ def makeInstall(sources, buildDir, installDir, distro, clean, version): # XXX- Optimizations need to be turned on for the release. # os.system('gmake NOGAC=yes OPTIMIZE=yes INSTALL_ROOT=' + installDir + ' install') - - # - # Edit config directory contents and copy into installation target - # directory. - # - destDir = os.path.join(installDir, 'config') - if not os.path.exists(destDir): - os.mkdir(destDir) - - # - # Its important to copy the files before editing them. If they are - # edited in place and then copied, the build will be broken and - # subsequent attempts to rebuild without cleaning will fail. - # - if distro.startswith('Ice-'): - # - # For C++ we copy the base build rules plus the platform - # specific rules for this specific platform. - # - filesToCopy = [] - filesToCopy.append(os.path.join('config', 'Make.rules')) - filesToCopy.append(os.path.join('config', 'Make.rules.' + getMakeRulesSuffix())) - for f in filesToCopy: - print('Copying ' + f + ' to ' + destDir) - shutil.copy(f, destDir) - editMakeRules(os.path.join(destDir, 'Make.rules'), version) - - elif distro.startswith('IceCS-'): - shutil.copy(os.path.join('config', 'Make.rules.cs'), destDir) - editMakeRules(os.path.join(destDir, 'Make.rules.cs'), version) - os.chdir(cwd) def shlibExtensions(versionString, versionInt): |