summaryrefslogtreecommitdiff
path: root/cpp/newmakebindist.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-05-16 10:32:13 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-05-16 10:32:13 +0000
commit43025ceda0b6438b9f296068e3bdc8ffc838303c (patch)
treebb21952f643f021f3a6295e4f9b911398148affe /cpp/newmakebindist.py
parentUpdated notes for Mono. (diff)
downloadice-43025ceda0b6438b9f296068e3bdc8ffc838303c.tar.bz2
ice-43025ceda0b6438b9f296068e3bdc8ffc838303c.tar.xz
ice-43025ceda0b6438b9f296068e3bdc8ffc838303c.zip
Minor Mac OS X Fix
Diffstat (limited to 'cpp/newmakebindist.py')
-rwxr-xr-xcpp/newmakebindist.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/newmakebindist.py b/cpp/newmakebindist.py
index d1673055719..478dd2efc60 100755
--- a/cpp/newmakebindist.py
+++ b/cpp/newmakebindist.py
@@ -379,6 +379,8 @@ def getDBfiles(dbLocation):
findCmd = ''
if getPlatform() == 'solaris':
findCmd = 'find lib -name "*' + getPlatformLibExtension() + '" -type f -maxdepth 1'
+ elif getPlatform() == 'macosx':
+ findCmd = 'find lib \( -name "*' + getPlatformLibExtension() + '" -or -name "*jnilib" \) -type f '
else:
findCmd = 'find lib -name "*' + getPlatformLibExtension() + '" -type f'
pipe_stdin, pipe_stdout = os.popen2(findCmd)
@@ -426,8 +428,9 @@ def copyExpatFiles(expatLocation, version):
os.chdir(cwd)
- shutil.copy(expatLocation + '/' + fileList[0].strip(), 'Ice-' + version + '/' + fileList[0].strip())
- os.symlink(os.path.basename(fileList[0].strip()), 'Ice-' + version + '/' + linkList[0].strip())
+ if not os.path.exists('Ice-' + version + '/' + fileList[0].strip()):
+ shutil.copy(expatLocation + '/' + fileList[0].strip(), 'Ice-' + version + '/' + fileList[0].strip())
+ os.symlink(os.path.basename(fileList[0].strip()), 'Ice-' + version + '/' + linkList[0].strip())
def makePHPbinary(sources, buildDir, installDir, version, clean):
""" Create the IcePHP binaries and install to Ice installation directory """