]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/website.make
Web: add Chinese webpage by Ben Luo, thanks!
[lilypond.git] / make / website.make
index 7cd3d91936adf1c206ae028e3e41304ac1dc9ebd..9ea679038813d7133ff8e4b91f649f8d50da5dd5 100644 (file)
@@ -16,8 +16,8 @@ ifeq ($(WEBSITE_ONLY_BUILD),1)
   top-htaccess=$(trusted-dir)/lilypond.org.htaccess
   dir-htaccess=$(trusted-dir)/website-dir.htaccess
   TEXI2HTML_PROGRAM=$(HOME)/usr/bin/texi2html
-  EXAMPLES=$(HOME)/media/ly-examples/
-  PICTURES=$(HOME)/media/pictures
+  EXAMPLES=$(HOME)/lilypond/media/ly-examples/
+  PICTURES=$(HOME)/lilypond/media/pictures
 else
   ### for normal git
   script-dir=$(top-src-dir)/scripts/build/
@@ -35,8 +35,9 @@ endif
 OUT=out-website
 
 ### only update this when the language compiles correctly!
-# LANGUAGES = (site, de, es, fr, hu, it, ja, nl)
-WEB_LANGS = es fr it nl
+# LANGUAGES = (site, cs, de, es, fr, hu, it, ja, nl, zh)
+#WEB_LANGS = de es fr hu it ja nl zh cs
+WEB_LANGS = de es fr hu it ja nl zh
 
 TEXI2HTML=ONLY_WEB=1 TOP_SRC_DIR=$(top-src-dir) DEPTH=$(depth) PERL_UNICODE=SD $(TEXI2HTML_PROGRAM)
 
@@ -45,6 +46,7 @@ CREATE_VERSION=python $(script-dir)/create-version-itexi.py
 CREATE_WEBLINKS=python $(script-dir)/create-weblinks-itexi.py
 MASS_LINK=python $(script-dir)/mass-link.py
 WEB_POST=python $(script-dir)/website_post.py
+WEB_BIBS=python $(script-dir)/bib2texi.py
 
 SERVER_FILES=$(top-src-dir)/Documentation/web/server/
 
@@ -81,9 +83,18 @@ website-xrefs: website-version
                done; \
        done;
 
+website-bibs: website-version
+       BSTINPUTS=$(top-src-dir)/Documentation/web/ \
+               $(WEB_BIBS) -s web \
+               -o $(OUT)/others-did.itexi \
+               $(top-src-dir)/Documentation/web/others-did.bib
+       BSTINPUTS=$(top-src-dir)/Documentation/web/ \
+               $(WEB_BIBS) -s web \
+               -o $(OUT)/we-wrote.itexi \
+               $(top-src-dir)/Documentation/web/we-wrote.bib
 
 
-website-texinfo: website-version website-xrefs
+website-texinfo: website-version website-xrefs website-bibs
        for l in '' $(WEB_LANGS); do \
                if test -n "$$l"; then \
                        langopt=--lang="$$l"; \