summaryrefslogtreecommitdiff
path: root/cpp/makebindist.py
diff options
context:
space:
mode:
authorBrent Eagles <brent@zeroc.com>2007-01-23 17:00:06 +0000
committerBrent Eagles <brent@zeroc.com>2007-01-23 17:00:06 +0000
commit6c5f9e086273f49458e6d515f461826081c942e9 (patch)
treef899178874c7c62a1a48da1b5a9b7e005bbf0709 /cpp/makebindist.py
parentNew online help (diff)
downloadice-6c5f9e086273f49458e6d515f461826081c942e9.tar.bz2
ice-6c5f9e086273f49458e6d515f461826081c942e9.tar.xz
ice-6c5f9e086273f49458e6d515f461826081c942e9.zip
- Removing ability to create RPMs from binary tarball.
- Adding an initial test version makeSRPMs.py script. - Adding some support for creating different spec files dependent on the target platform.
Diffstat (limited to 'cpp/makebindist.py')
-rwxr-xr-xcpp/makebindist.py43
1 files changed, 0 insertions, 43 deletions
diff --git a/cpp/makebindist.py b/cpp/makebindist.py
index 48f8b479218..7dbe1f4b3f0 100755
--- a/cpp/makebindist.py
+++ b/cpp/makebindist.py
@@ -23,8 +23,6 @@ import RPMTools
# pipes or redirections to work properly. Stay tuned.
#
-DEBUGMODE=False
-
class ExtProgramError:
def __init__(self, error = None):
self.msg = error
@@ -102,28 +100,6 @@ def getMakeRulesSuffix():
return 'AIX'
else:
return None
-
-def initDirectory(d):
- """Check for the existance of the directory. If it isn't there make
- it."""
- if os.path.exists(d):
- #
- # Make sure its a directory and has correct permissions.
- #
- if not os.path.isdir(d):
- print 'Path ' + d + ' exists but is not a directory.'
- sys.exit(1)
-
- if os.access(d, os.X_OK | os.R_OK | os.W_OK):
- logging.info('Path ' + d + ' exists and is ok, continuing')
- else:
- logging.warning('Directory ' + d + ' exists, but has incorrect permissions')
- sys.exit(1)
- else:
- #
- # This could fail due to lack of permissions.
- #
- os.makedirs(d, 0770)
def getVersion(cvsTag, buildDir):
"""Extracts a source file from the repository and gets the version number from it"""
@@ -859,8 +835,6 @@ def main():
offline = True
elif o == '--usecvs':
cvsMode = True
- elif o == 'debug':
- DEBUGMODE = True
if verbose:
logging.getLogger().setLevel(logging.DEBUG)
@@ -1129,23 +1103,6 @@ def main():
os.chdir(cwd)
#
- # If we are running on Linux, we need to create RPMs. This will
- # probably blow up unless the user that is running the script has
- # massaged the permissions on /usr/src/redhat/.
- #
- if getPlatform() == 'linux' and not cvsMode:
- shutil.copy(installFiles + '/unix/README.Linux-RPM', '/usr/src/redhat/SOURCES/README.Linux-RPM')
- shutil.copy(installFiles + '/unix/SOURCES.Linux', '/usr/src/redhat/SOURCES/SOURCES')
- shutil.copy(installFiles + '/unix/THIRD_PARTY_LICENSE.Linux', '/usr/src/redhat/SOURCES/THIRD_PARTY_LICENSE')
- shutil.copy(installFiles + '/unix/README.Linux-RPM', installDir + '/Ice-' + version + '/README')
- shutil.copy(installFiles + '/thirdparty/php/ice.ini', installDir + '/Ice-' + version + '/ice.ini')
- shutil.copy(installFiles + '/thirdparty/php/ice.ini', '/usr/src/redhat/SOURCES')
- iceArchives = glob.glob(sources + '/Ice*' + version + '*.gz')
- for f in iceArchives:
- shutil.copy(f, '/usr/src/redhat/SOURCES')
- RPMTools.createRPMSFromBinaries(buildDir, installDir, version, soVersion)
-
- #
# TODO: Cleanups? I've left everything in place so that the process
# can be easily debugged.
#