From: Jan Nieuwenhuizen Date: Sat, 10 Apr 2010 16:57:12 +0000 (+0200) Subject: Check for `UNTRANSLATED NODE: IGNORE ME' in two more places. X-Git-Tag: release/2.13.18-1~15^2~47 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5a8fc08a0a818031de9b3fcf79c5a6528431fa07;p=lilypond.git Check for `UNTRANSLATED NODE: IGNORE ME' in two more places. Fixes mirroring of untranslated html files. --- diff --git a/make/doc-i18n-root-targets.make b/make/doc-i18n-root-targets.make index fd95c1845e..e5ea060283 100644 --- a/make/doc-i18n-root-targets.make +++ b/make/doc-i18n-root-targets.make @@ -10,7 +10,7 @@ endif local-WWW-2: $(DEEP_HTML_FILES) $(BIG_PAGE_HTML_FILES) $(DOCUMENTATION_LOCALE_TARGET) # FIXME: move the following line to a rule that generate the right file - $(buildscript-dir)/mass-link --prepend-suffix .$(ISOLANG) hard $(outdir) $(top-build-dir)/Documentation/$(outdir) $(HTML_FILES) + (echo | grep -L 'UNTRANSLATED NODE: IGNORE ME' $(HTML_FILES)) | xargs $(buildscript-dir)/mass-link --prepend-suffix .$(ISOLANG) hard $(outdir) $(top-build-dir)/Documentation/$(outdir) $(DOCUMENTATION_LOCALE_TARGET): $(MAKE) -C $(depth)/Documentation/po out=www messages diff --git a/scripts/build/www_post.py b/scripts/build/www_post.py index cf1a7c38c6..a9ab88cd3e 100644 --- a/scripts/build/www_post.py +++ b/scripts/build/www_post.py @@ -49,7 +49,8 @@ html_files = [] hardlinked_files = [] for f in files: if f.endswith ('.html'): - html_files.append (f) + if not 'UNTRANSLATED NODE: IGNORE ME' in open (f).read (): + html_files.append (f) else: hardlinked_files.append (f) dirs = [re.sub ('/' + outdir, '', d) for d in dirs]