Skip to content

Commit c7801f4

Browse files
authored
Merge pull request #1410 from rpspringuel/ctan
CTAN related fixes/upgrades
2 parents 45f5640 + f7fcf44 commit c7801f4

21 files changed

+90
-48
lines changed

CHANGELOG.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).
2323

2424
## [5.0.1] - 2017-04-16
2525
### Fixed
26-
- Fixed a bug in the TeXLive compatibility code for Windows users. Thanks to Akira Kakuto for the catch.
26+
- Fixed a bug in the TeX Live compatibility code for Windows users. Thanks to Akira Kakuto for the catch.
2727

2828
## [5.0.0] - 2017-04-15
2929
### Fixed
@@ -81,7 +81,7 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).
8181

8282
## [4.2.1][Unreleased]
8383
### Fixed
84-
- Debian build scripts now use directories compatible with the TeXLive 2016 packaging of Gregorio (see [#1241](https://github.com/gregorio-project/gregorio/issues/1241)).
84+
- Debian build scripts now use directories compatible with the TeX Live 2016 packaging of Gregorio (see [#1241](https://github.com/gregorio-project/gregorio/issues/1241)).
8585

8686

8787
## [4.2.0] - 2016-09-23
@@ -175,7 +175,7 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).
175175
## [4.1.2] - 2016-05-08
176176
### Changed
177177
- The parmesan font is now called granapadano. If you were using `\gresetgregoriofont{parmesan}`, you should now use `\gresetgregoriofont{granapadano}`. See [#1075](https://github.com/gregorio-project/gregorio/issues/1075).
178-
- GregorioTeX is now compatible with TeXLive 2016
178+
- GregorioTeX is now compatible with TeX Live 2016
179179

180180

181181
## [4.1.1] - 2016-03-10
@@ -216,7 +216,7 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).
216216
- Command line output (help message, version message, error handling) has been improved, see [#891](https://github.com/gregorio-project/gregorio/issues/891)
217217
- Windows installer no longer copies the executable into the TeX bin directory. Instead it has the option to add its own bin directory to PATH.
218218
- `system-setup.sh` has become `system-setup.command` so that it is double click executable on Mac.
219-
- Post install options for Windows installer have been simplified. There are no longer separate options for MiKTeX and TeXLive. Instead the installer will determine which you have itself and act accordingly.
219+
- Post install options for Windows installer have been simplified. There are no longer separate options for MiKTeX and TeX Live. Instead the installer will determine which you have itself and act accordingly.
220220
- Windows installer will check more locations for old installations to remove.
221221
- Height of the porrectus have been altered (first note moved up, second also moved up when second ambitus is more than one) so that they are more coherent with the punctum height. The porrectus stroke drawings have also been slightly altered to be slightly thinner and sharper around the bottom note (see [#858](https://github.com/gregorio-project/gregorio/issues/858)).
222222
- When a syllable is preceeded by a punctum mora, gregorio now ignores the punctum mora in the spacing of the syllables by default, and also adds a custom space (defaulting to 0). You can change this behavior with `\gresetshiftaftermora{}`, see GregorioRef for its arguments. To balance the output, space before a punctum mora has been made slightly thinner, more in line with old Solesmes books. (For the change requests, see [#795](https://github.com/gregorio-project/gregorio/issues/795) and [#871](https://github.com/gregorio-project/gregorio/issues/871)).
@@ -363,7 +363,7 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).
363363
- The spacing of manual in-line custos (`(f+)` in gabc) is now consistent with the spacing of automatic in-line custos (`(z0)` in gabc). See [#642](https://github.com/gregorio-project/gregorio/issues/642).
364364
- Signs on the climacus praepunctis deminutus `(ghgf~)` neume are now positioned correctly. See [#650](https://github.com/gregorio-project/gregorio/issues/650)
365365
- Mac installer has been made SIP compliant (i.e. it now works on El Capitan).
366-
- Mac installer can now detect installations of TeXLive done with MacPorts or the command-line tool provided by TUG.
366+
- Mac installer can now detect installations of TeX Live done with MacPorts or the command-line tool provided by TUG.
367367
- Windows executable has file version information attached correctly so that the installer can properly recognize and replace the binary during an upgrade process.
368368
- Spacing was too large when alteration begins a syllable, see [#663](https://github.com/gregorio-project/gregorio/issues/663).
369369

@@ -424,7 +424,7 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).
424424
- `\gredefsymbol` for (re-)defining an arbitrary non-score glyph that scales with the text
425425
- `\gredefsizedsymbol` for (re-)defining an arbitary non-score glyph that requires a point-size to be specified.
426426
See GregorioRef.pdf for full details.
427-
- Added `--with-kpathsea` option to configure script, to check input and output file against `openout_any` and `openin_any` settings of texmf.cnf (TeXLive only). Necessary to be included in `shell_escape_commands` in TeXLive.
427+
- Added `--with-kpathsea` option to configure script, to check input and output file against `openout_any` and `openin_any` settings of texmf.cnf (TeX Live only). Necessary to be included in `shell_escape_commands` in TeX Live.
428428
- Support for `lualatex -recorder`. Autocompiled gabc and gtex files will now be properly recorded so that programs like `latexmk -recorder` can detect the need to rebuild the PDF when a gabc file changes.
429429
- A vertical episema may now be forced to appear above or below a note. In gabc, use `'0` for the vertical episema to appear below and `'1` for the vertical episema to appear above (see [#385](https://github.com/gregorio-project/gregorio/issues/385)).
430430
- The first word, first syllable, and first letter of the first syllable that is *not* interpreted as the initial of the score can now be styled from TeX. Use `\grechangestyle` to modify the `firstsyllableinitial`, `firstsyllable`, and `firstword` as desired.

Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ EXTRA_DIST = README.md CHANGELOG.md CONTRIBUTING.md CONTRIBUTORS.md \
2323
UPGRADE.md COPYING.md .gregorio-version VersionManager.py \
2424
build.sh install.sh install-gtex.sh
2525

26+
MAINTAINERCLEANFILES = gregoriotex.ctan.zip
27+
2628
export TOP_LEVEL_MAKE = true
2729

2830
gregorio:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ You can also try it online [here](http://dev.illuminarepublications.com/gregorio
1414

1515
## Installation
1616

17-
You need a recent and working [TeXLive](https://www.tug.org/texlive/), on top of which you just need to install latest [Gregorio release](https://github.com/gregorio-project/gregorio/releases). See [the website](http://gregorio-project.github.io/installation.html) for more details.
17+
You need a recent and working [TeX Live](https://www.tug.org/texlive/), on top of which you just need to install latest [Gregorio release](https://github.com/gregorio-project/gregorio/releases). See [the website](http://gregorio-project.github.io/installation.html) for more details.
1818

19-
## Building for inclusion in TeXLive
19+
## Building for inclusion in TeX Live
2020

21-
When building gregorio for inclusion in TeXLive, the gregorio executable must not have the version number suffix that is used for other builds. To make this happen, run `configure` with the `--disable-version-in-exe` option, and the generated Makefile will create a gregorio executable without the version number suffix (i.e., the executable will simply be named `gregorio`).
21+
When building gregorio for inclusion in TeX Live, the gregorio executable must not have the version number suffix that is used for other builds. To make this happen, run `configure` with the `--disable-version-in-exe` option, and the generated Makefile will create a gregorio executable without the version number suffix (i.e., the executable will simply be named `gregorio`).
2222

2323
## Documentation
2424

UPGRADE.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Upgrade Manual
22

3-
This file contains instructions to upgrade to a new release of Gregorio.
3+
This file contains instructions to upgrade to a new release of Gregorio. These instructions are cumulative; meaning that you should apply the instructions from all versions between the one you are upgrading from and the current version.
4+
5+
## 5.1
6+
7+
No additional steps are needed to upgrade from 5.0 to 5.1.
48

59
## 5.0
610

@@ -18,7 +22,7 @@ To install the new versions of Gregorio (the font) and Grana Padano, unzip `supp
1822
* `system`: the appropriate font folder in `$TEXMFLOCAL`
1923
* `user`: the appropriate font folder in `$TEXMFHOME`
2024
* `<dir>`: the name of an alternate texmf root directory you want to use
21-
25+
2226
Additionally, if you are building the fonts yourself from a git clone, `install-gtex.sh` and `install_supp_fonts.lua` will install all the fonts you have built, not just the ones they are normally distributed with.
2327

2428
**Note:** All the above methods assume you only need to access the fonts from within a TeX document (and thus are designed to put them into the correct folder in a texmf tree). If you want to use the fonts in other programs, then you will need to consult the documentation appropriate to your platform and/or the program and manually move, copy, or link the fonts to the necessary location.
@@ -27,7 +31,7 @@ Additionally, if you are building the fonts yourself from a git clone, `install-
2731

2832
As of version 5.0, ledger lines are extended through notes on either side of a ledger line that crosses a stem, as long as the notes are within the same element.
2933

30-
The algorithm for this is simple so it can be predictable, and it cannot take into account spacing adjustments made it TeX. This means it may not produce the exactly desired results. In order to get the results you want, you can override the automatic behavior in gabc:
34+
The algorithm for this is simple so it can be predictable, and it cannot take into account spacing adjustments made in TeX. This means it may not produce the exactly desired results. In order to get the results you want, you can override the automatic behavior in gabc:
3135

3236
- `[oll:1]` will force an over-the-staff ledger line on a note.
3337
- `[oll:0]` will suppress an over-the-staff ledger line on a note.
@@ -113,7 +117,7 @@ Prior to version 4.2, Gregorio inconsistenly indicated style errors. Now, error
113117

114118
### Changes to texmf tree
115119

116-
To better comply with the TeXLive directory structure, the location of `gregoriotex.sty` and `gregoriosyms.sty` have changed.
120+
To better comply with the TeX Live directory structure, the location of `gregoriotex.sty` and `gregoriosyms.sty` have changed.
117121

118122
*Linux and other users installing from source:* `install-gtex.sh` should remove the old versions before installing the new one.
119123

@@ -136,7 +140,7 @@ High notes are now taken into account in vertical spacings. If you would like to
136140

137141
### Last line of score behavior
138142

139-
`\grelooseness` is now `-1` by default. This should prevent orphaned syllable at end of score. If you prefer the old behavior, use `\def\grelooseness{\looseness}` befor including your scores.
143+
`\grelooseness` is now `-1` by default. This should prevent orphaned syllable at end of score. If you prefer the old behavior, use `\def\grelooseness{\looseness}` before including your scores.
140144

141145
## 4.1
142146

VersionManager.py

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -222,20 +222,48 @@ def replace_version(version_obj):
222222
result.append(line)
223223
with open(myfile, 'w') as outfile:
224224
outfile.write(''.join(result))
225+
sys.exit(0)
226+
227+
def update_changelog(newver,upgradetype):
228+
today = date.today()
225229
with open('CHANGELOG.md', 'r') as infile:
226230
result = []
231+
develop = False
227232
for line in infile:
228-
if '[Unreleased][unreleased]' in line:
229-
result.append(line)
230-
result.append('\n')
231-
result.append('\n')
232-
newline = '## [' + newver + '] - ' + today.strftime("%Y-%m-%d") + '\n'
233-
result.append(newline)
233+
if upgradetype == "patch":
234+
if '[Unreleased][develop]' in line:
235+
print("Found an unreleased develop section.")
236+
print("Patch releases should be based on ctan branch.")
237+
sys.exit(1)
238+
if '[Unreleased][CTAN]' in line:
239+
result.append(line)
240+
result.append('\n')
241+
result.append('\n')
242+
newline = '## [' + newver + '] - ' + today.strftime("%Y-%m-%d") + '\n'
243+
result.append(newline)
244+
else:
245+
result.append(line)
234246
else:
235-
result.append(line)
247+
if '[Unreleased][develop]' in line:
248+
develop = True
249+
result.append(line)
250+
result.append('\n')
251+
result.append('\n')
252+
result.append('## [Unreleased][CTAN]\n')
253+
result.append('\n')
254+
result.append('\n')
255+
newline = '## [' + newver + '] - ' + today.strftime("%Y-%m-%d") + '\n'
256+
result.append(newline)
257+
elif '[Unreleased][CTAN]' in line and develop:
258+
continue
259+
else:
260+
result.append(line)
261+
if not develop and upgradetype != "patch":
262+
print("I didn't find a unreleased develop section.")
263+
print("Non-patch releases should be based on develop branch.")
264+
sys.exit(1)
236265
with open('CHANGELOG.md','w') as outfile:
237266
outfile.write(''.join(result))
238-
sys.exit(0)
239267

240268
def confirm_replace(oldver, newver):
241269
"Query the user to confirm action"
@@ -262,6 +290,7 @@ def release_candidate(version_obj, not_interactive):
262290
newversion = re.sub(r'-.*', '-rc1', oldversion)
263291
if (not not_interactive):
264292
confirm_replace(oldversion, newversion)
293+
update_changelog(newversion,"releasecandidate")
265294
version_obj.update_version(newversion)
266295
replace_version(version_obj)
267296

@@ -277,6 +306,7 @@ def beta(version_obj, not_interactive):
277306
sys.exit(1)
278307
if (not not_interactive):
279308
confirm_replace(oldversion, newversion)
309+
update_changelog(newversion,"beta")
280310
version_obj.update_version(newversion)
281311
replace_version(version_obj)
282312

@@ -287,6 +317,7 @@ def bump_major(version_obj, not_interactive):
287317
newversion = str(int(nums.group(1)) +1) + '.0.0-beta1'
288318
if (not not_interactive):
289319
confirm_replace(oldversion, newversion)
320+
update_changelog(newversion,"major")
290321
version_obj.update_version(newversion)
291322
replace_version(version_obj)
292323

@@ -297,6 +328,7 @@ def bump_minor(version_obj, not_interactive):
297328
newversion = nums.group(1) + str(int(nums.group(2)) +1) + '.0-beta1'
298329
if (not not_interactive):
299330
confirm_replace(oldversion, newversion)
331+
update_changelog(newversion,"minor")
300332
version_obj.update_version(newversion)
301333
replace_version(version_obj)
302334

@@ -307,6 +339,7 @@ def bump_patch(version_obj, not_interactive):
307339
newversion = nums.group(1) + str(int(nums.group(2)) +1)
308340
if (not not_interactive):
309341
confirm_replace(oldversion, newversion)
342+
update_changelog(newversion,"patch")
310343
version_obj.update_version(newversion)
311344
replace_version(version_obj)
312345

@@ -319,6 +352,7 @@ def set_manual_version(version_obj, user_version, not_interactive):
319352
newversion = user_version
320353
if (not not_interactive):
321354
confirm_replace(oldversion, newversion)
355+
update_changelog(newversion,"manual")
322356
version_obj.update_version(newversion)
323357
replace_version(version_obj)
324358

@@ -328,6 +362,7 @@ def do_release(version_obj, not_interactive):
328362
newversion = re.sub(r'([\d.]+)-?.*', r'\1', oldversion)
329363
if (not not_interactive):
330364
confirm_replace(oldversion, newversion)
365+
update_changelog(newversion,"release")
331366
version_obj.update_version(newversion)
332367
replace_version(version_obj)
333368

contrib/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717

1818
SUBDIRS = TeXShop
1919

20-
EXTRA_DIST = gprocess gabc.xml gabc.lang gabc.vim 900_gregorio.xml gregorio.png gabc-syntax.plist README.md system-setup.command system-setup.bat config-texworks.command checkSyllabation.py
20+
EXTRA_DIST = gprocess gabc.xml gabc.lang gabc.vim 900_gregorio.xml gregorio.png gabc-syntax.plist contrib_README.md system-setup.command system-setup.bat config-texworks.command checkSyllabation.py

contrib/README.md renamed to contrib/contrib_README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Third party scripts
22

3-
This repository contains various small scripts or modules for third-party softwares to use Gregorio.
3+
This folder contains various small scripts or modules for third-party softwares to use Gregorio.
44

55
## Scribus
66

debian/README.Debian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ README file for Gregorio under DEBIAN GNU/Linux systems
33
After the installation of gregorio, if you want to benefit from the macros
44
compiling directly gabc fils in GregorioTeX (like \includescore), you
55
have to add gregorio to the list of programs allowed to run from TeX
6-
by TeXLive. To do so, you have to modify /etc/texmf/texmf.cnf and add
6+
by TeX Live. To do so, you have to modify /etc/texmf/texmf.cnf and add
77
gregorio to the list 'shell_escape_commands'.
88

File renamed without changes.

doc/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ maintainer-clean-local: clean-doc
6868
EXTRA_DIST = $(SRCFILES) $(NABCSRCFILES) \
6969
GregorioRef.pdf \
7070
GregorioNabcRef.pdf \
71-
README.md
71+
doc_README.md

0 commit comments

Comments
 (0)