Skip to content

Commit

Permalink
Merge commit '95fa23bbfcc311638dec20ac5b5a3081735444e9' into uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
rpspringuel committed Mar 16, 2018
2 parents 962e0e6 + 95fa23b commit 8c52bd0
Show file tree
Hide file tree
Showing 98 changed files with 241 additions and 123 deletions.
1 change: 1 addition & 0 deletions .gregorio-version
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
5.1.0
2018

*** Do not modify this file. ***
Use VersionManager.py to change the version.
2 changes: 1 addition & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Gregorio is developed by:
* [Olivier Berten](mailto:[email protected])
* [Henry So Jr](mailto:[email protected])
* [Br. Samuel Springuel](mailto:[email protected])
* [Br. Elijah Schwab](mailto:[email protected])
* [Rev. Elijah Schwab](mailto:[email protected])
* [Jakub Jelínek](mailto:[email protected])
* [Br. Gabriel-Marie](mailto:[email protected])

Expand Down
6 changes: 3 additions & 3 deletions COPYING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#License of Gregorio

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

The GPLv3 license applies to all files in the Gregorio sources and
repository, except:
Expand Down
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
# Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
#
# This file is part of Gregorio.
#
Expand Down
149 changes: 133 additions & 16 deletions VersionManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
See VersionUpdate.py -h for help
Copyright (C) 2015-2017 The Gregorio Project (see CONTRIBUTORS.md)
Copyright (C) 2015-2018 The Gregorio Project (see CONTRIBUTORS.md)
This file is part of Gregorio.
Expand All @@ -32,6 +32,7 @@
import time
import os
import locale
import linecache
from datetime import date

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

VERSION_FILE = '.gregorio-version'
CURRENTYEAR = str(date.today().year)
GREGORIO_FILES = ["configure.ac",
"ctan-o-mat.config",
"windows/gregorio-resources.rc",
Expand All @@ -65,6 +67,104 @@
"tex/gregoriotex-common.tex",
"fonts/squarize.py",
]
COPYRIGHT_FILES = ["install-gtex.sh",
"tex/gregoriotex-signs.tex",
"tex/gregorio-vowels.dat",
"tex/gsp-default.tex",
"tex/gregoriotex-nabc.lua",
"tex/gregoriotex-symbols.lua",
"tex/gregoriotex-chars.tex",
"tex/gregoriotex-main.tex",
"tex/gregoriotex-spaces.tex",
"tex/Makefile.am",
"tex/gregoriotex-common.tex",
"tex/gregoriotex-syllable.tex",
"tex/gregoriotex.lua",
"tex/gregoriotex.sty",
"tex/gregoriosyms.sty",
"tex/gregoriotex-nabc.tex",
"tex/gregoriotex.tex",
"tex/gregoriotex-signs.lua",
"tex/gregoriotex-symbols.tex",
"contrib/TeXShop/Makefile.am",
"contrib/900_gregorio.xml",
"contrib/Makefile.am",
"contrib/gabc.lang",
"contrib/gprocess",
"contrib/checkSyllabation.py",
"configure.ac",
"examples/Makefile.am",
"Makefile.am",
"install.sh",
"debian/copyright",
"debian/copyright",
"doc/Command_Index_User.tex",
"doc/Makefile.am",
"doc/GregorioRef.tex",
"doc/Command_Index_gregorio.tex",
"doc/Command_Index_internal.tex",
"doc/GregorioNabcRef.tex",
"doc/Gabc.tex",
"doc/GregorioRef.lua",
"doc/Appendix_Font_Tables.tex",
"VersionManager.py",
"coverage.sh",
"COPYING.md",
"src/characters.h",
"src/plugins.h",
"src/gregoriotex/gregoriotex-write.c",
"src/gregoriotex/gregoriotex.h",
"src/gregoriotex/gregoriotex-position.c",
"src/unicode.c",
"src/unicode.h",
"src/messages.h",
"src/support.c",
"src/sha1.h",
"src/messages.c",
"src/support.h",
"src/sha1.c",
"src/struct.h",
"src/bool.h",
"src/struct_iter.h",
"src/Makefile.am",
"src/dump/dump.c",
"src/encode_utf8strings.c",
"src/enum_generator.h",
"src/gabc/gabc-score-determination.c",
"src/gabc/gabc-elements-determination.c",
"src/gabc/gabc-write.c",
"src/gabc/gabc-notes-determination.l",
"src/gabc/gabc.h",
"src/gabc/gabc-score-determination.l",
"src/gabc/gabc-score-determination.y",
"src/gabc/gabc-score-determination.h",
"src/gabc/gabc-glyphs-determination.c",
"src/utf8strings.h.in",
"src/config.h",
"src/characters.c",
"src/vowel/vowel-rules.y",
"src/vowel/vowel.h",
"src/vowel/vowel-rules.h",
"src/vowel/vowel-rules.l",
"src/vowel/vowel.c",
"src/gregorio-utils.c",
"src/struct.c",
"fonts/gregorio-base.sfd",
"fonts/granapadano-base.sfd",
"fonts/squarize.py",
"fonts/convertsfdtottf.py",
"fonts/Makefile.am",
"fonts/simplify.py",
"fonts/stemsschemas.py",
"fonts/greciliae-base.sfd",
"fonts/gregall.sfd",
"fonts/grelaon.sfd",
"fonts/gresgmodern.sfd",
"fonts/install_supp_fonts.lua",
"windows/gregorio.iss",
"windows/install.lua",
"windows/uninstall.lua",
]

def get_parser():
"Return command line parser"
Expand Down Expand Up @@ -119,7 +219,7 @@ class Version(object):

def __init__(self, versionfile):
self.versionfile = versionfile
self.version = self.read_version()
self.version = linecache.getline(self.versionfile, 1).strip('\n')
self.filename_version = self.filename_version_from_version(self.version)
self.short_tag = None
self.date = None
Expand All @@ -131,19 +231,13 @@ def filename_version_from_version(self, version):

def binary_version_from_version(self, version):
"Return binary version number for Windows FILEVERSION"
bin = version.replace('.',',')
if '-' in bin:
bin = bin.replace('-beta',',1')
bin = bin.replace('-rc',',2')
binary = version.replace('.', ',')
if '-' in binary:
binary = binary.replace('-beta', ',1')
binary = binary.replace('-rc', ',2')
else:
bin += ',30'
return bin

def read_version(self):
"Return version for instance variable"
with open(self.versionfile, 'r') as verfile:
self.grever = verfile.readline()
return self.grever.strip('\n')
binary += ',30'
return binary

def fetch_version(self):
"Prints version"
Expand Down Expand Up @@ -173,7 +267,7 @@ def update_version(self, newversion):
print('Updating {0} with the new version: {1}\n'.format(
self.versionfile, self.version))
with open(self.versionfile, 'w') as verfile:
verfile.write(self.version)
verfile.write('{0}\n{1}'.format(self.version, CURRENTYEAR))
verfile.write('\n\n*** Do not modify this file. ***\n')
verfile.write('Use VersionManager.py to change the version.\n')

Expand Down Expand Up @@ -332,6 +426,28 @@ def do_release(version_obj, not_interactive):
version_obj.update_version(newversion)
replace_version(version_obj)

def copyright_year():
"Check and update copyright year as needed"
fileyear = linecache.getline(VERSION_FILE, 2).strip()
if int(fileyear) != int(CURRENTYEAR):
print('Updating copyright year.')
for myfile in COPYRIGHT_FILES:
result = []
with open(myfile, 'r') as infile:
for line in infile:
if re.search(r'[C|c]opyright.*Gregorio Project', line):
result.append(re.sub(fileyear, CURRENTYEAR, line))
elif re.search(r'[C|c]opyright.*Elie Roux', line):
result.append(re.sub(fileyear, CURRENTYEAR, line))
elif re.search(r'[C|c]opyright.*Richard Chonak', line):
result.append(re.sub(fileyear, CURRENTYEAR, line))
elif re.search(r'[C|c]opyright.*Jakub Jelinek', line):
result.append(re.sub(fileyear, CURRENTYEAR, line))
else:
result.append(line)
with open(myfile, 'w') as outfile:
outfile.write(''.join(result))

def main():
"Main function"
parser = get_parser()
Expand All @@ -349,7 +465,8 @@ def main():
gregorio_version.fetch_version_debian_stable()
elif args.get_debian_git:
gregorio_version.fetch_version_debian_git()
elif args.beta:
copyright_year()
if args.beta:
beta(gregorio_version, not_interactive)
elif args.major:
bump_major(gregorio_version, not_interactive)
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dnl Gregorio
dnl Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
dnl Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
dnl
dnl This file is part of Gregorio.
dnl
Expand Down
2 changes: 1 addition & 1 deletion contrib/900_gregorio.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
XML file for using gregorio inside scribus.
Copyright (C) 2009 Pierre Couderc <[email protected]>.
Copyright (C) 2010 Elie Roux <[email protected]>
Copyright (C) 2015-2017 The Gregorio Project (see CONTRIBUTORS.md)
Copyright (C) 2015-2018 The Gregorio Project (see CONTRIBUTORS.md)
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
Expand Down
2 changes: 1 addition & 1 deletion contrib/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
# Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
#
# This file is part of Gregorio.
#
Expand Down
2 changes: 1 addition & 1 deletion contrib/TeXShop/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
# Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
#
# This file is part of Gregorio.
#
Expand Down
2 changes: 1 addition & 1 deletion contrib/checkSyllabation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
See checkSyllabation.py -h for help
Copyright (C) 2016-2017 Elie Roux
Copyright (C) 2016-2018 Elie Roux
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion contrib/gabc.lang
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--
Author: Elie Roux <[email protected]>
Copyright (C) 2008-2017 Elie Roux <[email protected]>
Copyright (C) 2008-2018 Elie Roux <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion contrib/gprocess
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# --
#
# v0.1
# Copyright (C) 2008-2017 Richard Chonak <[email protected]>
# Copyright (C) 2008-2018 Richard Chonak <[email protected]>
#

# This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion coverage.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Copyright (C) 2016-2017 The Gregorio Project (see CONTRIBUTORS.md)
# Copyright (C) 2016-2018 The Gregorio Project (see CONTRIBUTORS.md)
#
# This file is part of Gregorio.
#
Expand Down
6 changes: 3 additions & 3 deletions debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ Upstream-Contact: Elie Roux <[email protected]>
Source: https://github.com/gregorio-project/gregorio/releases

Files: *
Copyright: 2008-2017 The Gregorio Project
Copyright: 2008-2018 The Gregorio Project
License: GPL-3+

Files: fonts/gregorio*
Copyright: 2008-2017 The Gregorio Project
Copyright: 2008-2018 The Gregorio Project
License: GPL-3font+

Files: fonts/granapadano*
Copyright: 2008-2017 Juergen Reuter, the Gregorio Project
Copyright: 2008-2018 Juergen Reuter, the Gregorio Project
License: GPL-3font+

Files: fonts/greciliae*
Expand Down
2 changes: 1 addition & 1 deletion doc/Appendix_Font_Tables.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% !TEX root = GregorioRef.tex
% !TEX program = LuaLaTeX+se
%
% Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
% Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
%
% This file is part of Gregorio.
%
Expand Down
2 changes: 1 addition & 1 deletion doc/Command_Index_User.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% !TEX root = GregorioRef.tex
% !TEX program = LuaLaTeX+se
%
% Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
% Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
%
% This file is part of Gregorio.
%
Expand Down
2 changes: 1 addition & 1 deletion doc/Command_Index_gregorio.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% !TEX root = GregorioRef.tex
% !TEX program = LuaLaTeX+se
%
% Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
% Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
%
% This file is part of Gregorio.
%
Expand Down
2 changes: 1 addition & 1 deletion doc/Command_Index_internal.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% !TEX root = GregorioRef.tex
% !TEX program = LuaLaTeX+se
%
% Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
% Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
%
% This file is part of Gregorio.
%
Expand Down
2 changes: 1 addition & 1 deletion doc/Gabc.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% !TEX root = GregorioRef.tex
% !TEX program = LuaLaTeX+se
%
% Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
% Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
%
% This file is part of Gregorio.
%
Expand Down
2 changes: 1 addition & 1 deletion doc/GregorioNabcRef.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% !TEX program = LuaLaTeX+se
%
% Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
% Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
%
% This file is part of Gregorio.
%
Expand Down
2 changes: 1 addition & 1 deletion doc/GregorioRef.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md)
-- Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md)
--
-- This file is part of Gregorio.
--
Expand Down
Loading

0 comments on commit 8c52bd0

Please sign in to comment.