diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-03-09 22:34:05 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-03-09 22:34:05 +0000 |
commit | 744f66fdcf7abb5764d2fe23235410d8adf60958 (patch) | |
tree | 996799eb66089e6a7f3b2c28ee84ff06d5ec37c8 /cpp/newmakebindist.py | |
parent | changes to subject profile (diff) | |
download | ice-744f66fdcf7abb5764d2fe23235410d8adf60958.tar.bz2 ice-744f66fdcf7abb5764d2fe23235410d8adf60958.tar.xz ice-744f66fdcf7abb5764d2fe23235410d8adf60958.zip |
Fix to include expat on Mac OS X
Diffstat (limited to 'cpp/newmakebindist.py')
-rwxr-xr-x | cpp/newmakebindist.py | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/cpp/newmakebindist.py b/cpp/newmakebindist.py index eafd9909193..445097ce3a3 100755 --- a/cpp/newmakebindist.py +++ b/cpp/newmakebindist.py @@ -365,6 +365,7 @@ 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() @@ -375,6 +376,43 @@ def getDBfiles(dbLocation): os.chdir(cwd) return fileList +def copyExpatFiles(expatLocation, version): + cwd = os.getcwd() + os.chdir(expatLocation) + + fileList = [] + findCmd = '' + if getPlatform() == 'solaris': + findCmd = 'find lib -name "*' + getPlatformLibExtension() + '" -type f -maxdepth 1' + else: + findCmd = 'find lib -name "*' + getPlatformLibExtension() + '" -type f' + pipe_stdin, pipe_stdout = os.popen2(findCmd) + lines = pipe_stdout.readlines() + pipe_stdin.close() + pipe_stdout.close() + fileList.extend(lines) + + linkList = [] + findCmd = '' + if getPlatform() == 'solaris': + findCmd = 'find lib -name "*' + getPlatformLibExtension() + '" -type l -maxdepth 1' + else: + findCmd = 'find lib -name "*' + getPlatformLibExtension() + '" -type l' + pipe_stdin, pipe_stdout = os.popen2(findCmd) + lines = pipe_stdout.readlines() + pipe_stdin.close() + pipe_stdout.close() + fileList.extend(lines) + + for i in lines: + if i != "libexpat." + getPlatformLibExtension(): + linkList.append(i) + + 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()) + def usage(): """Print usage/help information""" print "Usage: " + sys.argv[0] + " [options] [tag]" @@ -676,7 +714,9 @@ def main(): dbFiles = getDBfiles(dbLocation) for f in dbFiles: shutil.copy(dbLocation + '/' + f.strip(), 'Ice-' + version + '/' + f.strip()) - + + if getPlatform() in ['macosx']: + copyExpatFiles(buildEnvironment['EXPAT_HOME'], version) uname = getuname() platformSpecificFiles = [ 'README', 'SOURCES', 'THIRD_PARTY_LICENSE' ] |