Added automatic detection of translation to the spanish pages.
svn path=/trunk/; revision=1944
This commit is contained in:
7
Makefile
7
Makefile
@@ -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:
|
||||
|
Reference in New Issue
Block a user