]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/build/grand-replace.py
Preliminaries for `make grand-replace'.
[lilypond.git] / scripts / build / grand-replace.py
index cfbe88f3db9962076ba8723f61e9dcbc02a84f41..a30bf721145ee9a97ddbb2930882ff41c3de1c93 100644 (file)
@@ -2,7 +2,7 @@
 
 # This file is part of LilyPond, the GNU music typesetter.
 #
-# Copyright (C) 2009 Jan Nieuwenhuizen <janneke@gnu.org>
+# Copyright (C) 2009--2014 Jan Nieuwenhuizen <janneke@gnu.org>
 #
 # LilyPond is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -44,8 +44,11 @@ copied_files = [
     'texinfo.tex',
     'txi-de.tex',
     'txi-en.tex',
-    'txi-fr.tex',
     'txi-es.tex',
+    'txi-fr.tex',
+    'txi-hu.tex',
+    'txi-it.tex',
+    'txi-nl.tex',
     ]
 
 def main ():
@@ -57,7 +60,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 (),