summaryrefslogtreecommitdiff
path: root/cpp/newmakebindist.py
diff options
context:
space:
mode:
authorBrent Eagles <brent@zeroc.com>2005-03-09 16:24:41 +0000
committerBrent Eagles <brent@zeroc.com>2005-03-09 16:24:41 +0000
commitc261e20bd5391c8018df31dba18c5a3cc53e4d30 (patch)
treec149a46bb1b0131676e61ea97f867e80e334d1df /cpp/newmakebindist.py
parentFix (diff)
downloadice-c261e20bd5391c8018df31dba18c5a3cc53e4d30.tar.bz2
ice-c261e20bd5391c8018df31dba18c5a3cc53e4d30.tar.xz
ice-c261e20bd5391c8018df31dba18c5a3cc53e4d30.zip
fixing files that weren't closed, preventing their removal
Diffstat (limited to 'cpp/newmakebindist.py')
-rwxr-xr-xcpp/newmakebindist.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/newmakebindist.py b/cpp/newmakebindist.py
index 1114678a81c..76ae9722d29 100755
--- a/cpp/newmakebindist.py
+++ b/cpp/newmakebindist.py
@@ -228,6 +228,7 @@ endif
if line.startswith('prefix'):
state = 'done'
+ fileinput.close()
# Dependency files are all going to be bogus. The makedepend
# script doesn't seem to work properly for the slice files.
os.chdir("..")
@@ -239,6 +240,7 @@ endif
os.chdir(buildDir + "/Ice-" + version + "-demos/config")
for line in fileinput.input('common.xml', True, ".bak"):
print line.rstrip('\n').replace('ICE_VERSION', version)
+ fileinput.close()
os.chdir(tcwd)
shutil.rmtree(buildDir + "/demotree/" + distro, True)
@@ -371,7 +373,15 @@ def getDBFiles(dbLocation):
pipe_stdin.close()
pipe_stdout.close()
fileList.extend(lines)
+ if getPlatform == 'aix':
+ pipe_stdin, pipe_stdout = os.popen2('find lib -name "*.a" -type f')
+ lines = pipe_stdout.readlines()
+ pipe_stdin.close()
+ pipe_stdout.close()
+ fileList.extend(lines)
+
os.chdir(cwd)
+ return fileList
def usage():
"""Print usage/help information"""