Commit 1d7cee8b authored by Alexis de Lattre's avatar Alexis de Lattre

ALL : back to monolingual makefile, before we find a clean way to do a

multilingual one.

The new file architecture of the /doc/ repository is the following:

doc/
doc/videolan-quickstart/
doc/videolan-quickstart/Makefile
doc/videolan-quickstart/videolan-quickstart.xml
doc/videolan-quickstart/*.xml
doc/videolan-quickstart/en/
doc/videolan-quickstart/en/videolan-quickstart-en.xml
doc/videolan-quickstart/en/images/
doc/videolan-quickstart/en/*.html *.pdf *.rtf *.zip
doc/videolan-quickstart/fr/
doc/videolan-quickstart/fr/videolan-quickstart-fr.xml
doc/videolan-quickstart/fr/images/
[...]

Beware of the links to the images for the HTML pages AND for the files
inside the zip files (RTF and HTML).

ALL : changed to links for this new architecture.
parent 17fd1423
...@@ -30,11 +30,11 @@ ...@@ -30,11 +30,11 @@
<td class="category"><b>VideoLAN Quickstart</b></td> <td class="category"><b>VideoLAN Quickstart</b></td>
<td>Quick overview of VLC, VLC's stream output and the VOD solution</td> <td>Quick overview of VLC, VLC's stream output and the VOD solution</td>
<td class="yes">Up-to-date</td> <td class="yes">Up-to-date</td>
<td class="yes"><a href="/doc/videolan-quickstart/videolan-quickstart-en/index.html">EN</a></td> <td class="yes"><a href="/doc/videolan-quickstart/en/videolan-quickstart-en.html">EN</a></td>
<td class="yes"><a href="/doc/videolan-quickstart/videolan-quickstart-en-html.zip">EN</a></td> <td class="yes"><a href="/doc/videolan-quickstart/en/videolan-quickstart-en-html.zip">EN</a></td>
<td class="yes"><a href="/doc/videolan-quickstart/videolan-quickstart-en-pdf.zip">EN</a></td> <td class="yes"><a href="/doc/videolan-quickstart/en/videolan-quickstart-en-pdf.zip">EN</a></td>
<td class="yes"><a href="/doc/videolan-quickstart/videolan-quickstart-en-rtf.zip">EN</a></td> <td class="yes"><a href="/doc/videolan-quickstart/en/videolan-quickstart-en-rtf.zip">EN</a></td>
<td class="yes"><a href="/doc/videolan-quickstart/videolan-quickstart-en.txt">EN</a></td> <td class="yes"><a href="/doc/videolan-quickstart/en/videolan-quickstart-en.txt">EN</a></td>
</tr> </tr>
...@@ -43,11 +43,11 @@ ...@@ -43,11 +43,11 @@
<td class="category"><b>VideoLAN HOWTO</b></td> <td class="category"><b>VideoLAN HOWTO</b></td>
<td>Complete guide of the VideoLAN streaming solution</td> <td>Complete guide of the VideoLAN streaming solution</td>
<td class="yes">Up-to-date</td> <td class="yes">Up-to-date</td>
<td class="yes"><a href="/doc/videolan-howto/videolan-howto-en/index.html">EN</a></td> <td class="yes"><a href="/doc/videolan-howto/en/videolan-howto-en.html">EN</a></td>
<td class="yes"><a href="/doc/videolan-howto/videolan-howto-en-html.zip">EN</a></td> <td class="yes"><a href="/doc/videolan-howto/en/videolan-howto-en-html.zip">EN</a></td>
<td class="yes"><a href="/doc/videolan-howto/videolan-howto-en-pdf.zip">EN</a></td> <td class="yes"><a href="/doc/videolan-howto/en/videolan-howto-en-pdf.zip">EN</a></td>
<td class="yes"><a href="/doc/videolan-howto/videolan-howto-en-rtf.zip">EN</a></td> <td class="yes"><a href="/doc/videolan-howto/en/videolan-howto-en-rtf.zip">EN</a></td>
<td class="yes"><a href="/doc/videolan-howto/videolan-howto-en.txt">EN</a></td> <td class="yes"><a href="/doc/videolan-howto/en/videolan-howto-en.txt">EN</a></td>
</tr> </tr>
...@@ -57,11 +57,11 @@ ...@@ -57,11 +57,11 @@
<td class="category"><b>VLC user guide</b></td> <td class="category"><b>VLC user guide</b></td>
<td>Complete guide of VLC</td> <td>Complete guide of VLC</td>
<td class="yes">Up-to-date</td> <td class="yes">Up-to-date</td>
<td class="yes"><a href="/doc/vlc-user-guide/vlc-user-guide-en/index.html">EN</a></td> <td class="yes"><a href="/doc/vlc-user-guide/en/vlc-user-guide-en.html">EN</a></td>
<td class="yes"><a href="/doc/vlc-user-guide/vlc-user-guide-en-html.zip">EN</a></td> <td class="yes"><a href="/doc/vlc-user-guide/en/vlc-user-guide-en-html.zip">EN</a></td>
<td class="yes"><a href="/doc/vlc-user-guide/vlc-user-guide-en-pdf.zip">EN</a></td> <td class="yes"><a href="/doc/vlc-user-guide/en/vlc-user-guide-en-pdf.zip">EN</a></td>
<td class="yes"><a href="/doc/vlc-user-guide/vlc-user-guide-en-rtf.zip">EN</a></td> <td class="yes"><a href="/doc/vlc-user-guide/en/vlc-user-guide-en-rtf.zip">EN</a></td>
<td class="yes"><a href="/doc/vlc-user-guide/vlc-user-guide-en.txt">EN</a></td> <td class="yes"><a href="/doc/vlc-user-guide/en/vlc-user-guide-en.txt">EN</a></td>
</tr> </tr>
...@@ -70,11 +70,11 @@ ...@@ -70,11 +70,11 @@
<td class="category"><b>VLS user guide</b></td> <td class="category"><b>VLS user guide</b></td>
<td>Complete guide of VLS</td> <td>Complete guide of VLS</td>
<td class="yes">Up-to-date</td> <td class="yes">Up-to-date</td>
<td class="yes"><a href="/doc/vls-user-guide/vls-user-guide-en/index.html">EN</a></td> <td class="yes"><a href="/doc/vls-user-guide/en/vls-user-guide-en.html">EN</a></td>
<td class="yes"><a href="/doc/vls-user-guide/vls-user-guide-en-html.zip">EN</a></td> <td class="yes"><a href="/doc/vls-user-guide/en/vls-user-guide-en-html.zip">EN</a></td>
<td class="yes"><a href="/doc/vls-user-guide/vls-user-guide-en-pdf.zip">EN</a></td> <td class="yes"><a href="/doc/vls-user-guide/en/vls-user-guide-en-pdf.zip">EN</a></td>
<td class="yes"><a href="/doc/vls-user-guide/vls-user-guide-en-rtf.zip">EN</a></td> <td class="yes"><a href="/doc/vls-user-guide/en/vls-user-guide-en-rtf.zip">EN</a></td>
<td class="yes"><a href="/doc/vls-user-guide/vls-user-guide-en.txt">EN</a></td> <td class="yes"><a href="/doc/vls-user-guide/en/vls-user-guide-en.txt">EN</a></td>
</tr> </tr>
...@@ -135,4 +135,4 @@ all that is not in the official documentation: tips and tricks for each ...@@ -135,4 +135,4 @@ all that is not in the official documentation: tips and tricks for each
O.S., graphical interfaces, etc...</p> O.S., graphical interfaces, etc...</p>
<? footer('$Id: index.html,v 1.38 2003/07/05 22:44:09 alexis Exp $'); ?> <? footer('$Id: index.html,v 1.39 2003/07/06 00:54:24 alexis Exp $'); ?>
...@@ -5,58 +5,37 @@ DOC := videolan-howto ...@@ -5,58 +5,37 @@ DOC := videolan-howto
XML_DECL := /usr/lib/sgml/declaration/xml.decl XML_DECL := /usr/lib/sgml/declaration/xml.decl
EXT = html pdf rtf txt
LANG = en LANG = en
# We build HTML, PS, PDF, RTF and TXT for the Web site # We build HTML, PDF, RTF and TXT for the Web site
all: img $(LANG) all: $(LANG)/$(DOC)-$(LANG).html $(LANG)/$(DOC)-$(LANG).pdf $(LANG)/$(DOC)-$(LANG).rtf $(LANG)/$(DOC)-$(LANG).txt
$(LANG): %: $(foreach ext, $(EXT), $(DOC)-%.$(ext)) $(LANG)/$(DOC)-$(LANG).xml: $(DOC).xml
mkdir -p $(LANG)
xsltproc --stringparam lang $(LANG) ../common/multilanguage.xsl $^ | sed -e 's/id="$(DOC)"/id="$(DOC)-$(LANG)"/' > $@
cp -R ../../images/documentation $(LANG)/images
# Get the images from the /images/documentation directory $(LANG)/$(DOC)-$(LANG).html: $(LANG)/$(DOC)-$(LANG).xml
img:
rm -rf images
cp -R ../../images/documentation images
$(LANG:%=$(DOC)-%.xml): $(DOC).xml
xsltproc --stringparam lang $(shell echo $(basename $@) | sed -e 's/.*-//') ../common/multilanguage.xsl $^ | sed -e 's/id="$(DOC)"/id="$(basename $@)"/' > $@
$(LANG:%=$(DOC)-%.html): %.html: %.xml
jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $^ jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $^
ln -sf $@ index.html mv *.html $(LANG)
rm -f $(basename $@)-html.zip rm -f $(LANG)/$(DOC)-$(LANG)-html.zip
zip $(basename $@)-html.zip $@ images/*.jpg cd $(LANG) && zip $(DOC)-$(LANG)-html.zip *.html images/*.jpg
mkdir -p $(basename $@)
mv *.html $(basename $@) $(LANG)/$(DOC)-$(LANG).pdf: $(LANG)/$(DOC)-$(LANG).xml
ln -sf $(DOC)-en/index.html $(DOC)-en.html
rm -f $(DOC)-*.xml
make $(DOC)-$(LANG).xml
$(LANG:%=$(DOC)-%.pdf): %.pdf: %.xml
jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(basename $@).tex $(XML_DECL) $^ jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(basename $@).tex $(XML_DECL) $^
pdfjadetex $(basename $@).tex cd $(LANG) && pdfjadetex $(DOC)-$(LANG).tex
pdfjadetex $(basename $@).tex cd $(LANG) && rm -f *.tex *.out *.aux *.log
pdfjadetex $(basename $@).tex cd $(LANG) && zip $(DOC)-$(LANG)-pdf.zip $(DOC)-$(LANG).pdf
rm -f *.tex *.out *.aux *.log
zip $(basename $@)-pdf.zip $@ images/*.jpg $(LANG)/$(DOC)-$(LANG).rtf: $(LANG)/$(DOC)-$(LANG).xml
rm -f $(DOC)-*.xml
make $(DOC)-$(LANG).xml
$(LANG:%=$(DOC)-%.rtf): %.rtf: %.xml
jade -t rtf -d ../common/stylesheet-print-noicones.dsl -o $@ $(XML_DECL) $^ jade -t rtf -d ../common/stylesheet-print-noicones.dsl -o $@ $(XML_DECL) $^
rm -f $(basename $@)-rtf.zip rm -f $(LANG)/$(DOC)-$(LANG)-rtf.zip
zip $(basename $@)-rtf.zip $@ images/*.jpg cd $(LANG) && zip $(DOC)-$(LANG)-rtf.zip $(DOC)-$(LANG).rtf images/*.jpg
rm -f $(DOC)-*.xml
make $(DOC)-$(LANG).xml
$(LANG:%=$(DOC)-%.txt): %.txt: %.xml $(LANG)/$(DOC)-$(LANG).txt: $(LANG)/$(DOC)-$(LANG).xml
jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $^ > $^.html jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $^ > $^.html
# w3m -dump $^.html > $@ lynx -force_html -dump $^.html > $(LANG)/$(DOC)-$(LANG).txt
lynx -force_html -dump $^.html > $@
rm -f $^.html rm -f $^.html
rm -f $(DOC)-*.xml
make $(DOC)-$(LANG).xml
clean: clean:
rm -rf *.zip *.html *.pdf *.rtf *.txt *.dvi *.tex *.out *.aux *.log *.tmp $(DOC)-*.xml $(foreach lang, $(LANG), $(DOC)-$(lang)) rm -rf *.zip *.html *.pdf *.rtf *.txt *.dvi *.tex *.out *.aux *.log *.tmp $(LANG)
...@@ -5,51 +5,37 @@ DOC := videolan-quickstart ...@@ -5,51 +5,37 @@ DOC := videolan-quickstart
XML_DECL := /usr/lib/sgml/declaration/xml.decl XML_DECL := /usr/lib/sgml/declaration/xml.decl
EXT = html pdf rtf txt LANG = en
LANG = en fr
# We build HTML, PS, PDF, RTF and TXT for the Web site # We build HTML, PDF, RTF and TXT for the Web site
all: img $(LANG) all: $(LANG)/$(DOC)-$(LANG).html $(LANG)/$(DOC)-$(LANG).pdf $(LANG)/$(DOC)-$(LANG).rtf $(LANG)/$(DOC)-$(LANG).txt
$(LANG): %: $(foreach ext, $(EXT), $(DOC)-%.$(ext)) $(LANG)/$(DOC)-$(LANG).xml: $(DOC).xml
mkdir -p $(LANG)
xsltproc --stringparam lang $(LANG) ../common/multilanguage.xsl $^ | sed -e 's/id="$(DOC)"/id="$(DOC)-$(LANG)"/' > $@
cp -R ../../images/documentation $(LANG)/images
# Get the images from the /images/documentation directory $(LANG)/$(DOC)-$(LANG).html: $(LANG)/$(DOC)-$(LANG).xml
img:
rm -rf images
cp -R ../../images/documentation images
$(LANG:%=$(DOC)-%.xml): $(DOC).xml
xsltproc --stringparam lang $(shell echo $(basename $@) | sed -e 's/.*-//') ../common/multilanguage.xsl $^ | sed -e 's/id="$(DOC)"/id="$(basename $@)"/' > $@
$(LANG:%=$(DOC)-%.html): %.html: %.xml
jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $^ jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $^
ln -sf $@ index.html mv *.html $(LANG)
rm -f $(basename $@)-html.zip rm -f $(LANG)/$(DOC)-$(LANG)-html.zip
zip $(basename $@)-html.zip $@ images/*.jpg cd $(LANG) && zip $(DOC)-$(LANG)-html.zip *.html images/*.jpg
mkdir -p $(basename $@)
mv *.html $(basename $@) $(LANG)/$(DOC)-$(LANG).pdf: $(LANG)/$(DOC)-$(LANG).xml
ln -sf $(DOC)-en/index.html $(DOC)-en.html
$(LANG:%=$(DOC)-%.pdf): %.pdf: %.xml
jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(basename $@).tex $(XML_DECL) $^ jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(basename $@).tex $(XML_DECL) $^
pdfjadetex $(basename $@).tex cd $(LANG) && pdfjadetex $(DOC)-$(LANG).tex
pdfjadetex $(basename $@).tex cd $(LANG) && rm -f *.tex *.out *.aux *.log
pdfjadetex $(basename $@).tex cd $(LANG) && zip $(DOC)-$(LANG)-pdf.zip $(DOC)-$(LANG).pdf
rm -f *.tex *.out *.aux *.log
zip $(basename $@)-pdf.zip $@ images/*.jpg
$(LANG:%=$(DOC)-%.rtf): %.rtf: %.xml $(LANG)/$(DOC)-$(LANG).rtf: $(LANG)/$(DOC)-$(LANG).xml
jade -t rtf -d ../common/stylesheet-print-noicones.dsl -o $@ $(XML_DECL) $^ jade -t rtf -d ../common/stylesheet-print-noicones.dsl -o $@ $(XML_DECL) $^
rm -f $(basename $@)-rtf.zip rm -f $(LANG)/$(DOC)-$(LANG)-rtf.zip
zip $(basename $@)-rtf.zip $@ images/*.jpg cd $(LANG) && zip $(DOC)-$(LANG)-rtf.zip $(DOC)-$(LANG).rtf images/*.jpg
$(LANG:%=$(DOC)-%.txt): %.txt: %.xml $(LANG)/$(DOC)-$(LANG).txt: $(LANG)/$(DOC)-$(LANG).xml
jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $^ > $^.html jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $^ > $^.html
# w3m -dump $^.html > $@ lynx -force_html -dump $^.html > $(LANG)/$(DOC)-$(LANG).txt
lynx -force_html -dump $^.html > $@
rm -f $^.html rm -f $^.html
clean: clean:
rm -rf *.zip *.html *.pdf *.rtf *.txt *.dvi *.tex *.out *.aux *.log *.tmp $(DOC)-*.xml $(foreach lang, $(LANG), $(DOC)-$(lang)) rm -rf *.zip *.html *.pdf *.rtf *.txt *.dvi *.tex *.out *.aux *.log *.tmp $(LANG)
...@@ -5,50 +5,37 @@ DOC := vlc-user-guide ...@@ -5,50 +5,37 @@ DOC := vlc-user-guide
XML_DECL := /usr/lib/sgml/declaration/xml.decl XML_DECL := /usr/lib/sgml/declaration/xml.decl
EXT = html pdf rtf txt
LANG = en LANG = en
# We build HTML, PS, PDF, RTF and TXT for the Web site # We build HTML, PDF, RTF and TXT for the Web site
all: img $(LANG) all: $(LANG)/$(DOC)-$(LANG).html $(LANG)/$(DOC)-$(LANG).pdf $(LANG)/$(DOC)-$(LANG).rtf $(LANG)/$(DOC)-$(LANG).txt
$(LANG): %: $(foreach ext, $(EXT), $(DOC)-%.$(ext)) $(LANG)/$(DOC)-$(LANG).xml: $(DOC).xml
mkdir -p $(LANG)
xsltproc --stringparam lang $(LANG) ../common/multilanguage.xsl $^ | sed -e 's/id="$(DOC)"/id="$(DOC)-$(LANG)"/' > $@
cp -R ../../images/documentation $(LANG)/images
# Get the images from the /images/documentation directory $(LANG)/$(DOC)-$(LANG).html: $(LANG)/$(DOC)-$(LANG).xml
img:
rm -rf images
cp -R ../../images/documentation images
$(LANG:%=$(DOC)-%.xml): $(DOC).xml
xsltproc --stringparam lang $(shell echo $(basename $@) | sed -e 's/.*-//') ../common/multilanguage.xsl $^ | sed -e 's/id="$(DOC)"/id="$(basename $@)"/' > $@
$(LANG:%=$(DOC)-%.html): %.html: %.xml
jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $^ jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $^
ln -sf $@ index.html mv *.html $(LANG)
rm -f $(basename $@)-html.zip rm -f $(LANG)/$(DOC)-$(LANG)-html.zip
zip $(basename $@)-html.zip $@ images/*.jpg cd $(LANG) && zip $(DOC)-$(LANG)-html.zip *.html images/*.jpg
mkdir -p $(basename $@)
mv *.html $(basename $@) $(LANG)/$(DOC)-$(LANG).pdf: $(LANG)/$(DOC)-$(LANG).xml
ln -sf $(DOC)-en/index.html $(DOC)-en.html
$(LANG:%=$(DOC)-%.pdf): %.pdf: %.xml
jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(basename $@).tex $(XML_DECL) $^ jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(basename $@).tex $(XML_DECL) $^
pdfjadetex $(basename $@).tex cd $(LANG) && pdfjadetex $(DOC)-$(LANG).tex
pdfjadetex $(basename $@).tex cd $(LANG) && rm -f *.tex *.out *.aux *.log
pdfjadetex $(basename $@).tex cd $(LANG) && zip $(DOC)-$(LANG)-pdf.zip $(DOC)-$(LANG).pdf
rm -f *.tex *.out *.aux *.log
zip $(basename $@)-pdf.zip $@ images/*.jpg
$(LANG:%=$(DOC)-%.rtf): %.rtf: %.xml $(LANG)/$(DOC)-$(LANG).rtf: $(LANG)/$(DOC)-$(LANG).xml
jade -t rtf -d ../common/stylesheet-print-noicones.dsl -o $@ $(XML_DECL) $^ jade -t rtf -d ../common/stylesheet-print-noicones.dsl -o $@ $(XML_DECL) $^
rm -f $(basename $@)-rtf.zip rm -f $(LANG)/$(DOC)-$(LANG)-rtf.zip
zip $(basename $@)-rtf.zip $@ images/*.jpg cd $(LANG) && zip $(DOC)-$(LANG)-rtf.zip $(DOC)-$(LANG).rtf images/*.jpg
$(LANG:%=$(DOC)-%.txt): %.txt: %.xml $(LANG)/$(DOC)-$(LANG).txt: $(LANG)/$(DOC)-$(LANG).xml
jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $^ > $^.html jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $^ > $^.html
# w3m -dump $^.html > $@ lynx -force_html -dump $^.html > $(LANG)/$(DOC)-$(LANG).txt
lynx -force_html -dump $^.html > $@
rm -f $^.html rm -f $^.html
clean: clean:
rm -rf *.zip *.html *.pdf *.rtf *.txt *.dvi *.tex *.out *.aux *.log *.tmp $(DOC)-*.xml $(foreach lang, $(LANG), $(DOC)-$(lang)) rm -rf *.zip *.html *.pdf *.rtf *.txt *.dvi *.tex *.out *.aux *.log *.tmp $(LANG)
...@@ -5,51 +5,37 @@ DOC := vls-user-guide ...@@ -5,51 +5,37 @@ DOC := vls-user-guide
XML_DECL := /usr/lib/sgml/declaration/xml.decl XML_DECL := /usr/lib/sgml/declaration/xml.decl
EXT = html pdf rtf txt
LANG = en LANG = en
# We build HTML, PS, PDF, RTF and TXT for the Web site # We build HTML, PDF, RTF and TXT for the Web site
all: img $(LANG) all: $(LANG)/$(DOC)-$(LANG).html $(LANG)/$(DOC)-$(LANG).pdf $(LANG)/$(DOC)-$(LANG).rtf $(LANG)/$(DOC)-$(LANG).txt
$(LANG): %: $(foreach ext, $(EXT), $(DOC)-%.$(ext)) $(LANG)/$(DOC)-$(LANG).xml: $(DOC).xml
mkdir -p $(LANG)
xsltproc --stringparam lang $(LANG) ../common/multilanguage.xsl $^ | sed -e 's/id="$(DOC)"/id="$(DOC)-$(LANG)"/' > $@
cp -R ../../images/documentation $(LANG)/images
# Get the images from the /images/documentation directory $(LANG)/$(DOC)-$(LANG).html: $(LANG)/$(DOC)-$(LANG).xml
img:
rm -rf images
cp -R ../../images/documentation images
$(LANG:%=$(DOC)-%.xml): $(DOC).xml
xsltproc --stringparam lang $(shell echo $(basename $@) | sed -e 's/.*-//') ../common/multilanguage.xsl $^ | sed -e 's/id="$(DOC)"/id="$(basename $@)"/' > $@
$(LANG:%=$(DOC)-%.html): %.html: %.xml
jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $^ jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $^
ln -sf $@ index.html mv *.html $(LANG)
rm -f $(basename $@)-html.zip rm -f $(LANG)/$(DOC)-$(LANG)-html.zip
zip $(basename $@)-html.zip $@ images/*.jpg cd $(LANG) && zip $(DOC)-$(LANG)-html.zip *.html images/*.jpg
mkdir -p $(basename $@)
mv *.html $(basename $@)
ln -sf $(DOC)-en/index.html $(DOC)-en.html
$(LANG:%=$(DOC)-%.pdf): %.pdf: %.xml $(LANG)/$(DOC)-$(LANG).pdf: $(LANG)/$(DOC)-$(LANG).xml
jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(basename $@).tex $(XML_DECL) $^ jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(basename $@).tex $(XML_DECL) $^
pdfjadetex $(basename $@).tex cd $(LANG) && pdfjadetex $(DOC)-$(LANG).tex
pdfjadetex $(basename $@).tex cd $(LANG) && rm -f *.tex *.out *.aux *.log
pdfjadetex $(basename $@).tex cd $(LANG) && zip $(DOC)-$(LANG)-pdf.zip $(DOC)-$(LANG).pdf
rm -f *.tex *.out *.aux *.log
zip $(basename $@)-pdf.zip $@ images/*.jpg
$(LANG:%=$(DOC)-%.rtf): %.rtf: %.xml $(LANG)/$(DOC)-$(LANG).rtf: $(LANG)/$(DOC)-$(LANG).xml
jade -t rtf -d ../common/stylesheet-print-noicones.dsl -o $@ $(XML_DECL) $^ jade -t rtf -d ../common/stylesheet-print-noicones.dsl -o $@ $(XML_DECL) $^
rm -f $(basename $@)-rtf.zip rm -f $(LANG)/$(DOC)-$(LANG)-rtf.zip
zip $(basename $@)-rtf.zip $@ images/*.jpg cd $(LANG) && zip $(DOC)-$(LANG)-rtf.zip $(DOC)-$(LANG).rtf images/*.jpg
$(LANG:%=$(DOC)-%.txt): %.txt: %.xml $(LANG)/$(DOC)-$(LANG).txt: $(LANG)/$(DOC)-$(LANG).xml
jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $^ > $^.html jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $^ > $^.html
# w3m -dump $^.html > $@ lynx -force_html -dump $^.html > $(LANG)/$(DOC)-$(LANG).txt
lynx -force_html -dump $^.html > $@
rm -f $^.html rm -f $^.html
clean: clean:
rm -rf *.zip *.html *.pdf *.rtf *.txt *.dvi *.tex *.out *.aux *.log *.tmp $(DOC)-*.xml $(foreach lang, $(LANG), $(DOC)-$(lang)) rm -rf *.zip *.html *.pdf *.rtf *.txt *.dvi *.tex *.out *.aux *.log *.tmp $(LANG)
...@@ -134,7 +134,7 @@ below:</p> ...@@ -134,7 +134,7 @@ below:</p>
<td class="category">VideoLAN Quickstart</td> <td class="category">VideoLAN Quickstart</td>
<td class="yes">Up-to-date</td> <td class="yes">Up-to-date</td>
<td> <td>
<a href="/doc/videolan-quickstart/videolan-quickstart-en/index.html">English</a> <a href="/doc/videolan-quickstart/en/videolan-quickstart-en.html">English</a>
</td> </td>
</tr> </tr>
...@@ -142,7 +142,7 @@ below:</p> ...@@ -142,7 +142,7 @@ below:</p>
<td class="category">VideoLAN HOWTO</td> <td class="category">VideoLAN HOWTO</td>
<td class="yes">Up-to-date</td> <td class="yes">Up-to-date</td>
<td> <td>
<a href="/doc/videolan-howto/videolan-howto-en/index.html">English</a> <a href="/doc/videolan-howto/en/videolan-howto-en.html">English</a>
</td> </td>
</tr> </tr>
...@@ -150,7 +150,7 @@ below:</p> ...@@ -150,7 +150,7 @@ below:</p>
<td class="category">VLS user guide</td> <td class="category">VLS user guide</td>
<td class="yes">Up-to-date</td> <td class="yes">Up-to-date</td>
<td> <td>
<a href="/doc/vls-user-guide/vls-user-guide-en/index.html">English</a> <a href="/doc/vls-user-guide/en/vls-user-guide-en.html">English</a>
</td> </td>
</tr> </tr>
...@@ -167,4 +167,4 @@ below:</p> ...@@ -167,4 +167,4 @@ below:</p>
</table> </table>
<? footer('$Id: index.html,v 1.48 2003/07/05 22:44:10 alexis Exp $'); ?> <? footer('$Id: index.html,v 1.49 2003/07/06 00:54:25 alexis Exp $'); ?>
...@@ -141,7 +141,7 @@ libraries and build them yourself:</p> ...@@ -141,7 +141,7 @@ libraries and build them yourself:</p>
<td class="category">VLC user guide</td> <td class="category">VLC user guide</td>
<td class="yes">Up-to-date</td> <td class="yes">Up-to-date</td>
<td> <td>
<a href="/doc/vlc-user-guide/vlc-user-guide-en/index.html">English</a> <a href="/doc/vlc-user-guide/en/vlc-user-guide-en.html">English</a>
</td> </td>
</tr> </tr>
...@@ -170,4 +170,4 @@ libraries and build them yourself:</p> ...@@ -170,4 +170,4 @@ libraries and build them yourself:</p>
</tr> </tr>
</table> </table>
<? footer('$Id: index.html,v 1.66 2003/07/05 22:44:10 alexis Exp $'); ?> <? footer('$Id: index.html,v 1.67 2003/07/06 00:54:25 alexis Exp $'); ?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment