]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/build/grand-replace.py
Run grand replace for 2015.
[lilypond.git] / scripts / build / grand-replace.py
index dc0697d475bc412b37525b7dc0875c213ba6211c..f709be1760ae1e0bc33e60d7297c7669a06211c5 100644 (file)
@@ -1,22 +1,21 @@
 #! @PYTHON@
 
-'''
-    Copyright (c) 2009--210    Jan Nieuwenhuizen <janneke@gnu.org>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2, or (at your option)
-    any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-'''
+# This file is part of LilyPond, the GNU music typesetter.
+#
+# Copyright (C) 2009--2015 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
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# LilyPond is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 
 import datetime
 import os
@@ -45,8 +44,11 @@ copied_files = [
     'texinfo.tex',
     'txi-de.tex',
     'txi-en.tex',
+    'txi-es.tex',
     'txi-fr.tex',
-    'txi-sf.tex',
+    'txi-hu.tex',
+    'txi-it.tex',
+    'txi-nl.tex',
     ]
 
 def main ():
@@ -58,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 (),