From 9a7bab66f5b096dcc471ea336e367d4f27d159ea Mon Sep 17 00:00:00 2001 From: loic Date: Sat, 25 Aug 2001 22:36:18 +0000 Subject: [PATCH] Add italian svn path=/trunk/; revision=1247 --- Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fe07e94d74..f621d3a3ac 100644 --- a/Makefile +++ b/Makefile @@ -41,10 +41,12 @@ DEPAGES = $(shell find * -path 'fr' -prune -o -regex '.*\.de\.xhtml' -print | se PTPAGES = $(shell find * -path 'fr' -prune -o -regex '.*\.pt\.xhtml' -print | sed "s/xhtml$$/html/") +ITPAGES = $(shell find * -path 'fr' -prune -o -regex '.*\.it\.xhtml' -print | sed "s/xhtml$$/html/") + # temporary, added by mad@april.org NEWS = news/news.fr.html news/news.en.html -all: $(ENPAGES) $(FRPAGES) $(DEPAGES) $(PTPAGES) +all: $(ENPAGES) $(FRPAGES) $(DEPAGES) $(PTPAGES) $(ITPAGES) swpat/patents.en.html: swpat/patents-agenda.en.xml @@ -96,9 +98,19 @@ $(PTPAGES): %.html: %.xhtml fsfe.xsl navigation.pt.xsl $(XSLTPROC) fsfe.xsl $$path $(XSLTOPTS) '$$fsfeurope='$$root '$$filebase='$$filebase '$$path='$$path > $$base.html-temp && (cat $$base.html-temp | perl -p -e '$$| = 1; s/\$$//g if(/\$$''Date:/); s/mode: xml \*\*\*/mode: html \*\*\*/' > $$base.html) ; \ rm -f $$base.html-temp +$(ITPAGES): %.html: %.xhtml fsfe.xsl # navigation.it.xsl + @$(ECHO) "Building $@ ..."; \ + path=$< ; \ + base=`expr $$path : '\(.*\).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/\$$//g if(/\$$''Date:/); s/mode: xml \*\*\*/mode: html \*\*\*/' > $$base.html) ; \ + rm -f $$base.html-temp + # remove html files for which an xhtml version exists (exclude fr/) clean: - rm -f $(ENPAGES) $(FRPAGES) $(DEPAGES) $(PTPAGES) + rm -f $(ENPAGES) $(FRPAGES) $(DEPAGES) $(PTPAGES) $(ITPAGES) sync: @echo "Updating stable version : $(STABLEBRANCH)"