From 8d2d1eee8d1562676cd5c0307ddd886a899a37af Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Wed, 20 Aug 2008 17:29:22 +0200 Subject: [PATCH] Rename translated manuals makefiles and add_html_footer.py --- Documentation/de/user/GNUmakefile | 2 +- Documentation/es/user/GNUmakefile | 2 +- Documentation/fr/user/GNUmakefile | 2 +- .../{add_html_footer.py => postprocess_html.py} | 12 ++++++------ buildscripts/www_post.py | 6 +++--- .../{doclang-rules.make => doc-i18n-user-rules.make} | 0 ...clang-targets.make => doc-i18n-user-targets.make} | 0 make/{doclang-vars.make => doc-i18n-user-vars.make} | 0 8 files changed, 12 insertions(+), 12 deletions(-) rename buildscripts/{add_html_footer.py => postprocess_html.py} (97%) rename make/{doclang-rules.make => doc-i18n-user-rules.make} (100%) rename make/{doclang-targets.make => doc-i18n-user-targets.make} (100%) rename make/{doclang-vars.make => doc-i18n-user-vars.make} (100%) diff --git a/Documentation/de/user/GNUmakefile b/Documentation/de/user/GNUmakefile index fb4ca861ff..50042f40cb 100644 --- a/Documentation/de/user/GNUmakefile +++ b/Documentation/de/user/GNUmakefile @@ -1,4 +1,4 @@ ISOLANG = de depth = ../../.. -LOCALSTEPMAKE_TEMPLATES = lilypond ly doclang +LOCALSTEPMAKE_TEMPLATES = lilypond ly doc-i18n-user include $(depth)/make/stepmake.make diff --git a/Documentation/es/user/GNUmakefile b/Documentation/es/user/GNUmakefile index e93ae28aea..06916b9733 100644 --- a/Documentation/es/user/GNUmakefile +++ b/Documentation/es/user/GNUmakefile @@ -1,5 +1,5 @@ ISOLANG = es depth = ../../.. -LOCALSTEPMAKE_TEMPLATES = lilypond ly doclang +LOCALSTEPMAKE_TEMPLATES = lilypond ly doc-i18n-user BIG_PAGE_MANUALS = lilypond-learning include $(depth)/make/stepmake.make diff --git a/Documentation/fr/user/GNUmakefile b/Documentation/fr/user/GNUmakefile index cff64c97e9..a7defa6c44 100644 --- a/Documentation/fr/user/GNUmakefile +++ b/Documentation/fr/user/GNUmakefile @@ -1,4 +1,4 @@ ISOLANG = fr depth = ../../.. -LOCALSTEPMAKE_TEMPLATES = lilypond ly doclang +LOCALSTEPMAKE_TEMPLATES = lilypond ly doc-i18n-user include $(depth)/make/stepmake.make diff --git a/buildscripts/add_html_footer.py b/buildscripts/postprocess_html.py similarity index 97% rename from buildscripts/add_html_footer.py rename to buildscripts/postprocess_html.py index 8536ef3956..f4c4797f98 100644 --- a/buildscripts/add_html_footer.py +++ b/buildscripts/postprocess_html.py @@ -1,7 +1,7 @@ #!@PYTHON@ """ -Print a nice footer. +Postprocess HTML files. """ import re import os @@ -235,11 +235,11 @@ def add_menu (page_flavors, prefix, available, target, translation): return page_flavors -def add_html_footer (package_name = '', - package_version = '', - target = 'offline', - name_filter = lambda s: s): - """Add header, footer to a number of HTML files +def process_html_files (package_name = '', + package_version = '', + target = 'offline', + name_filter = lambda s: s): + """Add header, footer and tweak links to a number of HTML files Arguments: package_name=NAME set package_name to NAME diff --git a/buildscripts/www_post.py b/buildscripts/www_post.py index 146f8955b8..6fdb84f660 100644 --- a/buildscripts/www_post.py +++ b/buildscripts/www_post.py @@ -13,7 +13,7 @@ import re import langdefs import mirrortree -import add_html_footer +import postprocess_html package_name, package_version, outdir, targets = sys.argv[1:] targets = targets.split (' ') @@ -89,10 +89,10 @@ if 'online' in targets: f.write ('#.htaccess\nDirectoryIndex index\n') f.close () -add_html_footer.build_pages_dict (html_files) +postprocess_html.build_pages_dict (html_files) for t in targets: sys.stderr.write ("Processing HTML pages for %s target...\n" % t) - add_html_footer.add_html_footer ( + postprocess_html.process_html_files ( package_name = package_name, package_version = package_version, target = t, diff --git a/make/doclang-rules.make b/make/doc-i18n-user-rules.make similarity index 100% rename from make/doclang-rules.make rename to make/doc-i18n-user-rules.make diff --git a/make/doclang-targets.make b/make/doc-i18n-user-targets.make similarity index 100% rename from make/doclang-targets.make rename to make/doc-i18n-user-targets.make diff --git a/make/doclang-vars.make b/make/doc-i18n-user-vars.make similarity index 100% rename from make/doclang-vars.make rename to make/doc-i18n-user-vars.make -- 2.39.2