]> git.donarmstrong.com Git - lilypond.git/commitdiff
grand-replace.py: Update.
authorNeil Puttock <n.puttock@gmail.com>
Sat, 23 Jan 2010 21:11:51 +0000 (21:11 +0000)
committerNeil Puttock <n.puttock@gmail.com>
Sat, 23 Jan 2010 21:11:51 +0000 (21:11 +0000)
* add txi-it.tex to copied_files

* use lookahead to prevent space after current year being swallowed in
  files with single copyright year

scripts/build/grand-replace.py

index cfbe88f3db9962076ba8723f61e9dcbc02a84f41..85be5b7740c17b5515de6433547b53838e09bf1f 100644 (file)
@@ -46,6 +46,7 @@ copied_files = [
     'txi-en.tex',
     'txi-fr.tex',
     'txi-es.tex',
+    'txi-it.tex',
     ]
 
 def main ():
@@ -57,7 +58,7 @@ def main ():
     last_year = year - 1
     last_year_1d = last_year % 10
     for f in files:
-        pytt.pytt ('(Copyright|\(c\)|\(C\)|@copyright\{\})\s*%(last_year)s([^-]|$)' % locals (),
+        pytt.pytt ('(Copyright|\(c\)|\(C\)|@copyright\{\})\s*%(last_year)s(?=[^-]|$)' % locals (),
                    r'\1 %(last_year)s--%(year)s' % locals (),
                    f)
         pytt.pytt ('(Copyright|\(c\)|\(C\)|@copyright\{\})\s*([^-]*)--(20[0-9][0-%(last_year_1d)s])' % locals (),