[gs-cvs] rev 8404 - trunk/gs/toolbin/tests

giles at ghostscript.com giles at ghostscript.com
Wed Nov 21 17:03:46 PST 2007


Author: giles
Date: 2007-11-21 17:03:46 -0800 (Wed, 21 Nov 2007)
New Revision: 8404

Modified:
   trunk/gs/toolbin/tests/run_nightly.py
Log:
Update the run_nightly regression script to rewrite the product
name to GPL Ghostscript instead of AFPL Ghostscript. Also, include
quotation marks in the optional part of the regex so we work when
GS_PRODUCT is set to another macro and does not include a literal
string, as it does at release time.


Modified: trunk/gs/toolbin/tests/run_nightly.py
===================================================================
--- trunk/gs/toolbin/tests/run_nightly.py	2007-11-22 00:54:03 UTC (rev 8403)
+++ trunk/gs/toolbin/tests/run_nightly.py	2007-11-22 01:03:46 UTC (rev 8404)
@@ -1,7 +1,7 @@
 #!/usr/bin/python
 # -*- Mode: python -*-
 
-#    Copyright (C) 2001-2006 Artifex Software Inc.
+#    Copyright (C) 2001-2007 Artifex Software Inc.
 # 
 # This software is provided AS-IS with no warranty, either express or
 # implied.
@@ -137,7 +137,7 @@
     tmpfile = "%s.tmp" % (file,)
 
     startre = re.compile("^#ifndef\ GS_PRODUCT$")
-    changere = re.compile("^.*?\"[A-Za-z -]+\".*?$")
+    changere = re.compile("^.*?["A-Za-z -]+.*?$")
     endre = re.compile("^$")
 
     old = open(file, "r")
@@ -155,7 +155,7 @@
             m = changere.search(line)
             if m:
                 state = 2
-                new.write("\t\"AFPL Ghostscript\"\n")
+                new.write("\t\"GPL Ghostscript\"\n")
             else:
                 new.write(line)
         elif state == 2:



More information about the gs-cvs mailing list