diff options
author | Benoit Foucher <benoit@zeroc.com> | 2008-03-21 10:06:32 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2008-03-21 10:06:32 +0100 |
commit | 208e1ca464ece5abfbc15701c2be4a3ef64b0dd1 (patch) | |
tree | fb0d5faa468a60412e6d0b51ee5e2d0313389dad /distribution/bin/makebindist.py | |
parent | adding more text to release notes (diff) | |
download | ice-208e1ca464ece5abfbc15701c2be4a3ef64b0dd1.tar.bz2 ice-208e1ca464ece5abfbc15701c2be4a3ef64b0dd1.tar.xz ice-208e1ca464ece5abfbc15701c2be4a3ef64b0dd1.zip |
Fixed bug 2879
Diffstat (limited to 'distribution/bin/makebindist.py')
-rwxr-xr-x | distribution/bin/makebindist.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/distribution/bin/makebindist.py b/distribution/bin/makebindist.py index e696abd3e4a..219686a5383 100755 --- a/distribution/bin/makebindist.py +++ b/distribution/bin/makebindist.py @@ -133,6 +133,13 @@ if forceclean or not os.path.exists(srcDir) or not os.path.exists(buildDir): print sys.argv[0] + ": failed to unpack ./Ice-" + version + ".tar.gz" sys.exit(1) os.rename("Ice-" + version, srcDir) + + if platform.build_lp64: + if os.system("gunzip -c " + os.path.join(cwd, "Ice-" + version + ".tar.gz") + " | tar x" + quiet + "f -"): + print sys.argv[0] + ": failed to unpack ./Ice-" + version + ".tar.gz" + sys.exit(1) + os.rename("Ice-" + version, srcDir + "-64") + os.chdir(cwd) print "ok" @@ -158,20 +165,12 @@ for l in buildLanguages: os.chdir(cwd) sys.exit(1) else: - # - # Copy the language source directory to a directory suffixed with -lp64 - # if this platform supports a 64 bits build and the directory doesn't - # exist yet. - # - if not os.path.exists(os.path.join(srcDir, l + "-lp64")): - copy(os.path.join(srcDir, l), os.path.join(srcDir, l + "-lp64")) - if os.system("LP64=no " + makeCmd) != 0: print sys.argv[0] + ": `" + l + "' build failed" os.chdir(cwd) sys.exit(1) - os.chdir(os.path.join(srcDir, l + "-lp64")) + os.chdir(os.path.join(srcDir + "-64", l)) if os.system("LP64=yes " + makeCmd) != 0: print sys.argv[0] + ": `" + l + "' build failed" os.chdir(cwd) |