/[ascend]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1087 by johnpye, Tue Jan 9 14:33:29 2007 UTC revision 1088 by johnpye, Tue Jan 9 22:40:25 2007 UTC
# Line 1805  def TOOL_SUBST(env): Line 1805  def TOOL_SUBST(env):
1805          except:          except:
1806              raise SCons.Errors.UserError, "Can't read source file %s"%sourcefile              raise SCons.Errors.UserError, "Can't read source file %s"%sourcefile
1807          for (k,v) in dict.items():          for (k,v) in dict.items():
1808              contents = re.sub(k, v, contents)              try:
1809                    print "%s ---> %s" % (k,v)
1810                    contents = re.sub(k, v, contents)
1811                except Exception,e:
1812                    sys.stderr.write("Failed to substute '%s' with '%s': %s\n" % (k,v,e))
1813            
1814          try:          try:
1815              f = open(targetfile, 'wb')              f = open(targetfile, 'wb')
1816              f.write(contents)              f.write(contents)

Legend:
Removed from v.1087  
changed lines
  Added in v.1088

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22