X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fauxiliar%2Fbuildlib.py;h=a2a553aa04f8d4edcf94f1d5d10038d28548f15d;hb=5d84bfad4626892bcffd05adcced53c8a2329047;hp=5ec022e16af31bc81c285bf5b55c68bab6bb1301;hpb=0f6250f7a23c8226906145ee92fa477712b56979;p=lilypond.git diff --git a/python/auxiliar/buildlib.py b/python/auxiliar/buildlib.py index 5ec022e16a..a2a553aa04 100644 --- a/python/auxiliar/buildlib.py +++ b/python/auxiliar/buildlib.py @@ -22,14 +22,15 @@ def read_pipe (command): ### Renamed files map to ensure continuity of file history ## Map of new_name: old_name renames_map = { - 'application.tely': 'user/lilypond-program.tely', + 'usage.tely': 'user/lilypond-program.tely', 'notation.tely': 'user/lilypond.tely', 'learning.tely': 'user/lilypond-learning.tely', 'changes.tely': 'topdocs/NEWS.tely', } +# FIXME: Hardcoded file names!? manuals_subdirectories_re = \ - re.compile ('(application|essay|learning|notation)/') + re.compile ('(usage|automated-engraving|changes|essay|extending|web|learning|notation)/') def add_old_name (file_path): for new_path in renames_map: @@ -66,6 +67,8 @@ def check_translated_doc (original, translated_file, translated_contents, sys.stderr.write (no_committish_fatal_error % translated_file) sys.exit (1) revision = m.group (1) + if revision == '0': + return '', 0 if color: color_flag = '--color --color-words'