changeset 51:4b118a410f56

bugfix: add missing newlines to re.sub refactoring
author janneke <janneke@gnu.org>
date Sat, 26 Nov 2005 10:16:07 +0100
parents 952dc2146023
children 46b8856b7347
files specs/framework.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/specs/framework.py	Sat Nov 26 09:58:18 2005 +0100
+++ b/specs/framework.py	Sat Nov 26 10:16:07 2005 +0100
@@ -58,11 +58,11 @@
 ''')
 		gub.Package.configure (self)
 
-		## FIXME: use handy re.sub
+		## FIXME: use handy self.file-re.sub
 		str = open (self.builddir () + '/Makefile').read ()
-		str = re.sub ('\nLIBTOOL=[^\n]', 'LIBTOOL=%(builddir)s/libtool --tag=CXX' % self.package_dict (),
+		str = re.sub ('\nLIBTOOL=[^\n]', '\nLIBTOOL=%(builddir)s/libtool --tag=CXX\n' % self.package_dict (),
 			      str)
-		open (self.builddir () + '/Makefile','w').write (str)
+		open (self.builddir () + '/Makefile', 'w').write (str)
 
 		self.dump ('%(builddir)s/Makefile', '''
 # libtool will not build dll if -no-undefined flag is not present