Skip to content

Commit 8c52bd0

Browse files
committed
Merge commit '95fa23bbfcc311638dec20ac5b5a3081735444e9' into uploader
2 parents 962e0e6 + 95fa23b commit 8c52bd0

File tree

98 files changed

+241
-123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+241
-123
lines changed

.gregorio-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
5.1.0
2+
2018
23

34
*** Do not modify this file. ***
45
Use VersionManager.py to change the version.

CONTRIBUTORS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Gregorio is developed by:
66
* [Olivier Berten](mailto:olivier.berten@gmail.com)
77
* [Henry So Jr](mailto:henryso@panix.com)
88
* [Br. Samuel Springuel](mailto:rpspringuel@gmail.com)
9-
* [Br. Elijah Schwab](mailto:elijahschwab@gmail.com)
9+
* [Rev. Elijah Schwab](mailto:elijahschwab@gmail.com)
1010
* [Jakub Jelínek](mailto:jakub@redhat.com)
1111
* [Br. Gabriel-Marie](mailto:brgabriel@sspx.com)
1212

COPYING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#License of Gregorio
22

3-
The program Gregorio is (C) 2007-2016 The Gregorio project, see
4-
[CONTRIBUTORS.md](CONTRIBUTORS.md) for authors. It is distributed under
5-
the GPLv3 license, printed below.
3+
The program Gregorio is Copyright (C) 2007-2018 The Gregorio Project,
4+
see [CONTRIBUTORS.md](CONTRIBUTORS.md) for authors. It is distributed
5+
under the GPLv3 license, printed below.
66

77
The GPLv3 license applies to all files in the Gregorio sources and
88
repository, except:

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
1+
# Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
22
#
33
# This file is part of Gregorio.
44
#

VersionManager.py

Lines changed: 133 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
See VersionUpdate.py -h for help
77
8-
Copyright (C) 2015-2017 The Gregorio Project (see CONTRIBUTORS.md)
8+
Copyright (C) 2015-2018 The Gregorio Project (see CONTRIBUTORS.md)
99
1010
This file is part of Gregorio.
1111
@@ -32,6 +32,7 @@
3232
import time
3333
import os
3434
import locale
35+
import linecache
3536
from datetime import date
3637

3738
from distutils.util import strtobool
@@ -41,6 +42,7 @@
4142
os.chdir(sys.path[0])
4243

4344
VERSION_FILE = '.gregorio-version'
45+
CURRENTYEAR = str(date.today().year)
4446
GREGORIO_FILES = ["configure.ac",
4547
"ctan-o-mat.config",
4648
"windows/gregorio-resources.rc",
@@ -65,6 +67,104 @@
6567
"tex/gregoriotex-common.tex",
6668
"fonts/squarize.py",
6769
]
70+
COPYRIGHT_FILES = ["install-gtex.sh",
71+
"tex/gregoriotex-signs.tex",
72+
"tex/gregorio-vowels.dat",
73+
"tex/gsp-default.tex",
74+
"tex/gregoriotex-nabc.lua",
75+
"tex/gregoriotex-symbols.lua",
76+
"tex/gregoriotex-chars.tex",
77+
"tex/gregoriotex-main.tex",
78+
"tex/gregoriotex-spaces.tex",
79+
"tex/Makefile.am",
80+
"tex/gregoriotex-common.tex",
81+
"tex/gregoriotex-syllable.tex",
82+
"tex/gregoriotex.lua",
83+
"tex/gregoriotex.sty",
84+
"tex/gregoriosyms.sty",
85+
"tex/gregoriotex-nabc.tex",
86+
"tex/gregoriotex.tex",
87+
"tex/gregoriotex-signs.lua",
88+
"tex/gregoriotex-symbols.tex",
89+
"contrib/TeXShop/Makefile.am",
90+
"contrib/900_gregorio.xml",
91+
"contrib/Makefile.am",
92+
"contrib/gabc.lang",
93+
"contrib/gprocess",
94+
"contrib/checkSyllabation.py",
95+
"configure.ac",
96+
"examples/Makefile.am",
97+
"Makefile.am",
98+
"install.sh",
99+
"debian/copyright",
100+
"debian/copyright",
101+
"doc/Command_Index_User.tex",
102+
"doc/Makefile.am",
103+
"doc/GregorioRef.tex",
104+
"doc/Command_Index_gregorio.tex",
105+
"doc/Command_Index_internal.tex",
106+
"doc/GregorioNabcRef.tex",
107+
"doc/Gabc.tex",
108+
"doc/GregorioRef.lua",
109+
"doc/Appendix_Font_Tables.tex",
110+
"VersionManager.py",
111+
"coverage.sh",
112+
"COPYING.md",
113+
"src/characters.h",
114+
"src/plugins.h",
115+
"src/gregoriotex/gregoriotex-write.c",
116+
"src/gregoriotex/gregoriotex.h",
117+
"src/gregoriotex/gregoriotex-position.c",
118+
"src/unicode.c",
119+
"src/unicode.h",
120+
"src/messages.h",
121+
"src/support.c",
122+
"src/sha1.h",
123+
"src/messages.c",
124+
"src/support.h",
125+
"src/sha1.c",
126+
"src/struct.h",
127+
"src/bool.h",
128+
"src/struct_iter.h",
129+
"src/Makefile.am",
130+
"src/dump/dump.c",
131+
"src/encode_utf8strings.c",
132+
"src/enum_generator.h",
133+
"src/gabc/gabc-score-determination.c",
134+
"src/gabc/gabc-elements-determination.c",
135+
"src/gabc/gabc-write.c",
136+
"src/gabc/gabc-notes-determination.l",
137+
"src/gabc/gabc.h",
138+
"src/gabc/gabc-score-determination.l",
139+
"src/gabc/gabc-score-determination.y",
140+
"src/gabc/gabc-score-determination.h",
141+
"src/gabc/gabc-glyphs-determination.c",
142+
"src/utf8strings.h.in",
143+
"src/config.h",
144+
"src/characters.c",
145+
"src/vowel/vowel-rules.y",
146+
"src/vowel/vowel.h",
147+
"src/vowel/vowel-rules.h",
148+
"src/vowel/vowel-rules.l",
149+
"src/vowel/vowel.c",
150+
"src/gregorio-utils.c",
151+
"src/struct.c",
152+
"fonts/gregorio-base.sfd",
153+
"fonts/granapadano-base.sfd",
154+
"fonts/squarize.py",
155+
"fonts/convertsfdtottf.py",
156+
"fonts/Makefile.am",
157+
"fonts/simplify.py",
158+
"fonts/stemsschemas.py",
159+
"fonts/greciliae-base.sfd",
160+
"fonts/gregall.sfd",
161+
"fonts/grelaon.sfd",
162+
"fonts/gresgmodern.sfd",
163+
"fonts/install_supp_fonts.lua",
164+
"windows/gregorio.iss",
165+
"windows/install.lua",
166+
"windows/uninstall.lua",
167+
]
68168

69169
def get_parser():
70170
"Return command line parser"
@@ -119,7 +219,7 @@ class Version(object):
119219

120220
def __init__(self, versionfile):
121221
self.versionfile = versionfile
122-
self.version = self.read_version()
222+
self.version = linecache.getline(self.versionfile, 1).strip('\n')
123223
self.filename_version = self.filename_version_from_version(self.version)
124224
self.short_tag = None
125225
self.date = None
@@ -131,19 +231,13 @@ def filename_version_from_version(self, version):
131231

132232
def binary_version_from_version(self, version):
133233
"Return binary version number for Windows FILEVERSION"
134-
bin = version.replace('.',',')
135-
if '-' in bin:
136-
bin = bin.replace('-beta',',1')
137-
bin = bin.replace('-rc',',2')
234+
binary = version.replace('.', ',')
235+
if '-' in binary:
236+
binary = binary.replace('-beta', ',1')
237+
binary = binary.replace('-rc', ',2')
138238
else:
139-
bin += ',30'
140-
return bin
141-
142-
def read_version(self):
143-
"Return version for instance variable"
144-
with open(self.versionfile, 'r') as verfile:
145-
self.grever = verfile.readline()
146-
return self.grever.strip('\n')
239+
binary += ',30'
240+
return binary
147241

148242
def fetch_version(self):
149243
"Prints version"
@@ -173,7 +267,7 @@ def update_version(self, newversion):
173267
print('Updating {0} with the new version: {1}\n'.format(
174268
self.versionfile, self.version))
175269
with open(self.versionfile, 'w') as verfile:
176-
verfile.write(self.version)
270+
verfile.write('{0}\n{1}'.format(self.version, CURRENTYEAR))
177271
verfile.write('\n\n*** Do not modify this file. ***\n')
178272
verfile.write('Use VersionManager.py to change the version.\n')
179273

@@ -332,6 +426,28 @@ def do_release(version_obj, not_interactive):
332426
version_obj.update_version(newversion)
333427
replace_version(version_obj)
334428

429+
def copyright_year():
430+
"Check and update copyright year as needed"
431+
fileyear = linecache.getline(VERSION_FILE, 2).strip()
432+
if int(fileyear) != int(CURRENTYEAR):
433+
print('Updating copyright year.')
434+
for myfile in COPYRIGHT_FILES:
435+
result = []
436+
with open(myfile, 'r') as infile:
437+
for line in infile:
438+
if re.search(r'[C|c]opyright.*Gregorio Project', line):
439+
result.append(re.sub(fileyear, CURRENTYEAR, line))
440+
elif re.search(r'[C|c]opyright.*Elie Roux', line):
441+
result.append(re.sub(fileyear, CURRENTYEAR, line))
442+
elif re.search(r'[C|c]opyright.*Richard Chonak', line):
443+
result.append(re.sub(fileyear, CURRENTYEAR, line))
444+
elif re.search(r'[C|c]opyright.*Jakub Jelinek', line):
445+
result.append(re.sub(fileyear, CURRENTYEAR, line))
446+
else:
447+
result.append(line)
448+
with open(myfile, 'w') as outfile:
449+
outfile.write(''.join(result))
450+
335451
def main():
336452
"Main function"
337453
parser = get_parser()
@@ -349,7 +465,8 @@ def main():
349465
gregorio_version.fetch_version_debian_stable()
350466
elif args.get_debian_git:
351467
gregorio_version.fetch_version_debian_git()
352-
elif args.beta:
468+
copyright_year()
469+
if args.beta:
353470
beta(gregorio_version, not_interactive)
354471
elif args.major:
355472
bump_major(gregorio_version, not_interactive)

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Gregorio
2-
dnl Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
2+
dnl Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
33
dnl
44
dnl This file is part of Gregorio.
55
dnl

contrib/900_gregorio.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
XML file for using gregorio inside scribus.
44
Copyright (C) 2009 Pierre Couderc <pierre@couderc.eu>.
55
Copyright (C) 2010 Elie Roux <elie.roux@telecom-bretagne.eu>
6-
Copyright (C) 2015-2017 The Gregorio Project (see CONTRIBUTORS.md)
6+
Copyright (C) 2015-2018 The Gregorio Project (see CONTRIBUTORS.md)
77
88
This program is free software; you can redistribute it and/or modify
99
it under the terms of the GNU General Public License as published by

contrib/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
1+
# Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
22
#
33
# This file is part of Gregorio.
44
#

contrib/TeXShop/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
1+
# Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
22
#
33
# This file is part of Gregorio.
44
#

contrib/checkSyllabation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
See checkSyllabation.py -h for help
77
8-
Copyright (C) 2016-2017 Elie Roux
8+
Copyright (C) 2016-2018 Elie Roux
99
1010
Permission is hereby granted, free of charge, to any person obtaining a copy of
1111
this software and associated documentation files (the "Software"), to deal in

0 commit comments

Comments
 (0)