diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-03-07 17:50:27 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-03-07 17:50:27 +0000 |
commit | d6cf6d6ccc8170dbcbca61e46f4e06dcb6bbd193 (patch) | |
tree | d9d6b8a104d4d44b8839c79b7d7e462f90cf1d09 /cpp/makebindist.py | |
parent | Fixed bug #1965 (diff) | |
download | ice-d6cf6d6ccc8170dbcbca61e46f4e06dcb6bbd193.tar.bz2 ice-d6cf6d6ccc8170dbcbca61e46f4e06dcb6bbd193.tar.xz ice-d6cf6d6ccc8170dbcbca61e46f4e06dcb6bbd193.zip |
Fixed bug #1987
Diffstat (limited to 'cpp/makebindist.py')
-rwxr-xr-x | cpp/makebindist.py | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/cpp/makebindist.py b/cpp/makebindist.py index 17f79aa3f60..0316c81acdd 100755 --- a/cpp/makebindist.py +++ b/cpp/makebindist.py @@ -260,8 +260,11 @@ def editMakeRules(filename, version): reIceLocation = re.compile('^[a-z]*dir.*=\s*\$\(top_srcdir\)') makefile = fileinput.input(filename, True) + skipLine = 0 for line in makefile: - if line.startswith('slicedir'): + if (skipLine > 0): + skipLine = skipLine - 1 + elif line.startswith('slicedir'): print """ ifeq ($(ICE_DIR),/usr) slicedir = $(ICE_DIR)/share/Ice-$(VERSION)/slice @@ -270,18 +273,21 @@ else endif """ elif line.startswith('embedded_runpath_prefix'): - state = 'untilblank' - print """ -ifneq ($(ICE_DIR),/usr) - embedded_runpath_prefix ?= /opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR) -endif -""" - elif line.startswith('embedded_runpath_prefix'): # # embedded_runpath_prefix is moved down to after the version # information is set. # pass + elif line.startswith('# Select an installation base directory'): + # + # Delete this comment + # + skipLine = 2 + elif line.startswith('# The "root directory" for runpath'): + # + # Delete this comment + # + skipLine = 2 elif reIceLocation.search(line) <> None: output = line.rstrip('\n').replace('top_srcdir', 'ICE_DIR', 10) if line.startswith('libdir'): @@ -315,7 +321,7 @@ endif elif line.startswith('install_'): # - # Do nothing. + # Delete # pass elif line.startswith('SOVERSION'): @@ -332,25 +338,25 @@ ifeq ($(ICE_HOME),) ifneq ($(shell test -f $(ICE_DIR)/bin/icestormadmin && echo 0),0) NEXTDIR = /opt/Ice-$(VERSION) ifneq ($(shell test -f $(NEXTDIR)/bin/icestormadmin && echo 0),0) -$(error Unable to locate Ice distribution, please set ICE_HOME!) + $(error Unable to locate Ice distribution, please set ICE_HOME!) else ICE_DIR = $(NEXTDIR) endif else NEXTDIR = /opt/Ice-$(VERSION) ifeq ($(shell test -f $(NEXTDIR)/bin/icestormadmin && echo 0),0) -$(warning Ice distribution found in /usr and $(NEXTDIR)! Installation in "/usr" will be used by default. Use ICE_HOME to specify alternate Ice installation.) + $(warning Ice distribution found in /usr and $(NEXTDIR)! Installation in "/usr" will be used by default. Use ICE_HOME to specify alternate Ice installation.) endif endif else ICE_DIR = $(ICE_HOME) ifneq ($(shell test -f $(ICE_DIR)/bin/icestormadmin && echo 0),0) -$(error Ice distribution not found in $(ICE_DIR), please verify ICE_HOME location!) + $(error Ice distribution not found in $(ICE_DIR), please verify ICE_HOME location!) endif endif ifneq ($(ICE_DIR),/usr) -embedded_runpath_prefix ?= /opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR) + embedded_runpath_prefix ?= /opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR) endif prefix = $(ICE_DIR) @@ -358,11 +364,9 @@ prefix = $(ICE_DIR) """ elif line.startswith('prefix'): # - # Delete the prefix line. It will be set later on after - # SOVERSION. + # Delete prefix line # - print "# 'prefix' is automatically defined later on in this file using default" - print "# locations or ICE_HOME" + pass else: print line.rstrip('\n') |