]> git.donarmstrong.com Git - lilypond.git/commitdiff
Check for `UNTRANSLATED NODE: IGNORE ME' in two more places.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 10 Apr 2010 16:57:12 +0000 (18:57 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 10 Apr 2010 16:57:12 +0000 (18:57 +0200)
Fixes mirroring of untranslated html files.

make/doc-i18n-root-targets.make
scripts/build/www_post.py

index fd95c1845eafd35949ecab02d9c42a7425ed666f..e5ea060283e5cf2a47c214eb5ce9e1c6b8a071ed 100644 (file)
@@ -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
index cf1a7c38c61b4657e3f51a4e530b0e7b2e334259..a9ab88cd3ecbc9f2af49a86ec971313fa51f7d4e 100644 (file)
@@ -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]