Added automatic detection of translation to the spanish pages.

svn path=/trunk/; revision=1944
This commit is contained in:
jneves
2002-02-07 16:07:07 +00:00
parent eb2498328a
commit 51c27b2b9c
10 changed files with 7 additions and 85 deletions

View File

@@ -109,12 +109,13 @@ $(ITPAGES): %.html: %.xhtml fsfe.xsl navigation.it.xsl
$(ESPAGES): %.html: %.xhtml fsfe.xsl navigation.es.xsl
@$(ECHO) "Building $@ ..."; \
path=$< ; \
base=`expr $$path : '\(.*\).xhtml'` ; \
base=`expr $$path : '\(.*\).es.xhtml'` ; \
filebase=`basename $$base` ; \
dir=`dirname $$path` ; \
root=`dirname $$path | perl -pe 'chop; s:([^/]+):..:g if($$_ ne ".")'` ; \
$(XSLTPROC) fsfe.xsl $$path $(XSLTOPTS) '$$fsfeurope='$$root '$$filebase='$$filebase '$$path='$$path > $$base.html-temp && (cat $$base.html-temp | perl -p -e '$$| = 1; (s/Date://, s/Author:/por/, s/\$$//g) if(/\$$''Date:/); s/mode: xml \*\*\*/mode: html \*\*\*/' > $$base.html) ; \
rm -f $$base.html-temp
langlinks="`./tools/translate.sh $$base es`" ; \
$(XSLTPROC) fsfe.xsl $$path $(XSLTOPTS) '$$fsfeurope='$$root '$$filebase='$$filebase.es '$$path='$$path '$$langlinks='"$$langlinks" > $$base.es.html-temp && (cat $$base.es.html-temp | perl -p -e '$$| = 1; (s/Date://, s/Author:/por/, s/\$$//g) if(/\$$''Date:/); s/mode: xml \*\*\*/mode: html \*\*\*/' > $$base.es.html) ; \
rm -f $$base.es.html-temp
# remove html files for which an xhtml version exists (exclude fr/)
clean: