diff options
author | Ralph Giles <ralph.giles@artifex.com> | 2007-11-22 01:03:46 +0000 |
---|---|---|
committer | Ralph Giles <ralph.giles@artifex.com> | 2007-11-22 01:03:46 +0000 |
commit | 2d601a79c8720e32979bb339f186a1068f43f6f2 (patch) | |
tree | 867a7f900cd997f6f0f9c1b935b4dd4b99cd9437 /gs/toolbin | |
parent | 11195ca54719bc3d49ca1c8fe803c29ac5ca333a (diff) | |
download | ghostpdl-2d601a79c8720e32979bb339f186a1068f43f6f2.tar.gz |
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.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8404 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/toolbin')
-rwxr-xr-x | gs/toolbin/tests/run_nightly.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gs/toolbin/tests/run_nightly.py b/gs/toolbin/tests/run_nightly.py index 35b15f30f..72c654163 100755 --- a/gs/toolbin/tests/run_nightly.py +++ b/gs/toolbin/tests/run_nightly.py @@ -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 @@ def change_gsproduct(file): 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 @@ def change_gsproduct(file): 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: |