mirror of
https://github.com/sshlien/abcmidi.git
synced 2026-05-30 20:09:29 +00:00
Unify package version on VERSION file; bump abc2midi to 5.03 (#25)
- abc2midi 5.03 (April 2026): bumped #define VERSION in store.c to reflect this branch's accumulated fixes (error exit status, missing C:/R:/X: header emission, %%MIDIdef macros allowed anywhere) plus the build-system additions. - Single source of truth for the package release date: the VERSION file is now consumed by both build paths. - CMakeLists.txt reads it via file(STRINGS VERSION ABCMIDI_VERSION ...); the previously hard-coded project(VERSION 2026.02.24) (an unused PROJECT_VERSION) is dropped because the date format isn't MAJOR.MINOR.PATCH. - configure.ac uses m4_esyscmd_s([cat VERSION]) in AC_INIT, replacing the very stale hard-coded 2011-08-03. - The two build paths remain independent — no cross-generation between CMake and autoconf. - Test normalization fix (tests/run_test.cmake): the version-banner regex now requires a capitalized month and accepts a date with or without a day number. The previous regex was lowercase-permissive and silently ate PostScript lines like 0.5 setlinewidth 0 0 moveto in yaps output — tests/golden/yaps_coleraine.txt is regenerated to reflect the now-correctly-preserved PostScript. - Docs: - doc/CHANGES: April 25 2026 entry covering the version bump and VERSION-file unification. - doc/readme.txt: per-tool listing updated (abc2midi 5.03 April 2026, midistats 1.03 February 20 2026 synced to source). - doc/abc2midi.1: header label bumped to 5.03 April 2026 (content not audited). - README.md: new Maintainers / releasing section documenting the release procedure, including the requirement to run autoreconf -f so the committed configure picks up the new AC_INIT arguments.
This commit is contained in:
@@ -818,7 +818,8 @@ gsave translate 0.7 0.7 scale 0 0 dsh0 grestore
|
||||
% Section 13 - Staff And Other things
|
||||
|
||||
/staff { % usage: l staff - draw staff
|
||||
gsave dup 0 rlineto dup neg 6 rmoveto
|
||||
gsave 0.5 setlinewidth 0 0 moveto
|
||||
dup 0 rlineto dup neg 6 rmoveto
|
||||
dup 0 rlineto dup neg 6 rmoveto
|
||||
dup 0 rlineto dup neg 6 rmoveto
|
||||
dup 0 rlineto dup neg 6 rmoveto
|
||||
|
||||
@@ -130,8 +130,12 @@ endif()
|
||||
|
||||
file(READ "${raw}" content)
|
||||
|
||||
# Strip program version banners (e.g. "5.02 February 16 2025 abc2midi")
|
||||
string(REGEX REPLACE "[0-9]+\\.[0-9]+ +[A-Za-z]+ +[0-9]+ +[0-9]+ +[a-z2]+\n" "" content "${content}")
|
||||
# Strip program version banners. Two date forms are emitted across the
|
||||
# binaries: "5.02 February 16 2025 abc2midi" (with day) and "5.03 April
|
||||
# 2026 abc2midi" (month + year only) — the day number is optional.
|
||||
# The month token must be capitalized to avoid matching PostScript lines
|
||||
# like "0.8 setlinewidth 0 setlinecap" in yaps output.
|
||||
string(REGEX REPLACE "[0-9]+\\.[0-9]+ +[A-Z][a-z]+ +([0-9]+ +)?[0-9]+ +[a-z2]+\n" "" content "${content}")
|
||||
|
||||
# Strip yaps PostScript volatile headers
|
||||
string(REGEX REPLACE "%%Title:[^\n]*\n" "%%Title: <stripped>\n" content "${content}")
|
||||
|
||||
Reference in New Issue
Block a user