Commit b777f3d1 authored by Alexis de Lattre's avatar Alexis de Lattre

New Makfiles for the documentation.

sap.xml and sout.xml : documents the IPv6 SAP announces.

.htaccess, */index.html : the FAQ now has the same organisation as the
other documents.
parent 375d3ad2
......@@ -64,6 +64,9 @@ Redirect permanent /doc/videolan-howto/index.html http://www.videolan.org/doc/vi
Redirect permanent /doc/videolan-quickstart/index.html http://www.videolan.org/doc/videolan-quickstart/en/videolan-quickstart-en.html
Redirect permanent /doc/vlc-user-guide/index.html http://www.videolan.org/doc/vlc-user-guide/en/vlc-user-guide-en.html
Redirect permanent /doc/vls-user-guide/index.html http://www.videolan.org/doc/vls-user-guide/en/vls-user-guide-en.html
Redirect permanent /doc/faq/videolan-faq-en.html http://www.videolan.org/doc/faq/en/videolan-faq-en.html
Redirect permanent /doc/faq/videolan-faq-fr.html http://www.videolan.org/doc/faq/en/videolan-faq-fr.html
Redirect permanent /doc/faq/videolan-faq-es.html http://www.videolan.org/doc/faq/en/videolan-faq-es.html
#
......
......@@ -29,6 +29,13 @@ the name that will be used for this program in the SAP announces and
<emphasis>12</emphasis> is the value of the TTL (Time To Live) of the
stream and of the SAP announces.</para>
<para>To do the SAP announces in IPv6, just add the
<emphasis>sap_ipv=6</emphasis> option:</para>
<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout '#standard{access=udp,url=239.255.12.42,sap="Test Stream",sap_ipv=6}' --ttl 12</userinput>
</screen>
</sect1>
<sect1><title>Send announces for the programs streamed by VLS with the
......
......@@ -102,6 +102,11 @@ multicast IP address where you want to stream.</para></listitem>
option to announce your stream, using SAP/SDP. This option contains the
name under which you want to announce the program.</para></listitem>
<listitem><para><emphasis>sap_ipv</emphasis>: if you use the
<emphasis>sap</emphasis> option, use this option to specify if you want
to send the SAP announces in IPv4 or IPv6. The value of this option is
<emphasis>4</emphasis> or <emphasis>6</emphasis>.</para></listitem>
</itemizedlist>
<note><para>If you are streaming in multicast, you may want to use the
......
# Makefile for the VideoLAN Documentation
# Makefile for the VideoLAN Documentation in DocBook XML
# Written by Alexis de Lattre <alexis@videolan.org>
# Factorised by Sam Hocevar <sam@zoy.org>
# To build another language than the default one, do 'make LANG=foo'
DOC = videolan-faq
XML_DECL := /usr/lib/sgml/declaration/xml.decl
LANG = es fr en
EXT = html pdf rtf txt
# Document name
DOC := videolan-faq
# The generic rule: build all extensions for all languages
all: $(LANG)
$(LANG): %: $(foreach ext, $(EXT), $(DOC)-%.$(ext))
# XML declaration
XML_DECL := /usr/lib/sgml/declaration/xml.decl
# The clean rule
# Default language (English)
LANG = en
# All available languages (used in 'make clean')
ALL_LANG = en fr es
# Build HTML, PDF, RTF and TXT outputs (for the web site)
all: $(LANG)/$(DOC)-$(LANG).html $(LANG)/$(DOC)-$(LANG).pdf $(LANG)/$(DOC)-$(LANG).rtf $(LANG)/$(DOC)-$(LANG).txt
# Extract one language (XML to XML transformation) and prepare the repository
$(LANG)/$(DOC)-$(LANG).xml: *.xml ../common/multilanguage.xsl
mkdir -p $(LANG)
xsltproc --stringparam lang $(LANG) ../common/multilanguage.xsl $(DOC).xml | sed -e 's/id="$(DOC)"/id="$(DOC)-$(LANG)"/' > $@
cp -R ../../images/documentation $(LANG)/images
# HTML output
$(LANG)/$(DOC)-$(LANG).html: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-html.dsl
jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml
mv *.html $(LANG)
rm -f $(LANG)/$(DOC)-$(LANG)-html.zip
cd $(LANG) && zip $(DOC)-$(LANG)-html.zip *.html images/*.gif
# PDF output
$(LANG)/$(DOC)-$(LANG).pdf: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-print-noicones.dsl
jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(LANG)/$(DOC)-$(LANG).tex $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml
cd $(LANG) && pdfjadetex $(DOC)-$(LANG).tex
cd $(LANG) && rm -f *.tex *.out *.aux *.log
cd $(LANG) && zip $(DOC)-$(LANG)-pdf.zip $(DOC)-$(LANG).pdf
# RTF output
$(LANG)/$(DOC)-$(LANG).rtf: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-print-noicones.dsl
cd $(LANG) && jade -t rtf -d ../../common/stylesheet-print-noicones.dsl -o $(DOC)-$(LANG).rtf $(XML_DECL) $(DOC)-$(LANG).xml
rm -f $(LANG)/$(DOC)-$(LANG)-rtf.zip
cd $(LANG) && zip $(DOC)-$(LANG)-rtf.zip $(DOC)-$(LANG).rtf
# TXT output
$(LANG)/$(DOC)-$(LANG).txt: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-txt.dsl
jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml > $(LANG)/dumpfortxt.html
lynx -force_html -dump $(LANG)/dumpfortxt.html > $(LANG)/$(DOC)-$(LANG).txt
rm -f $(LANG)/dumpfortxt.html
# Delete all outputs
clean:
rm -f *.zip *.html *.pdf *.ps *.txt *.rtf *.dvi *.out *.aux *.log $(DOC)-*.xml *.tmp
# Specific rules for each extension
$(LANG:%=$(DOC)-%.xml): $(DOC).xml
xsltproc --stringparam lang $(shell echo $(basename $@) | sed -e 's/.*-//') ../common/multilanguage.xsl $^ | sed -e 's/id="$(DOC)"/id="$(basename $@)"/' > $@
cp -R ../../images/documentation images
$(LANG:%=$(DOC)-%.html): %.html: %.xml
jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $^
zip $(basename $@)-html.zip $@
$(LANG:%=$(DOC)-%.pdf): %.pdf: %.xml
jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(basename $@).tex $(XML_DECL) $^
pdfjadetex $(basename $@).tex
rm -f *.tex *.out *.aux *.log
zip $(basename $@)-pdf.zip $@
$(LANG:%=$(DOC)-%.rtf): %.rtf: %.xml
jade -t rtf -d ../common/stylesheet-print-noicones.dsl -o $@ $(XML_DECL) $^
zip $(basename $@)-rtf.zip $@
$(LANG:%=$(DOC)-%.txt): %.txt: %.xml
jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $^ > $^.html
lynx -force_html -dump $^.html > $@
rm -f $^.html
rm -rf $(ALL_LANG)
......@@ -32,7 +32,7 @@
<td class="yes">Up-to-date</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/en/videolan-quickstart-en-html.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/en/videolan-quickstart-en.pdf">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/en/videolan-quickstart-en.txt">EN</a></td>
......@@ -45,7 +45,7 @@
<td class="yes">Up-to-date</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/en/videolan-howto-en-html.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/en/videolan-howto-en.pdf">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/en/videolan-howto-en.txt">EN</a></td>
......@@ -59,7 +59,7 @@
<td class="yes">Up-to-date</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/en/vlc-user-guide-en-html.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/en/vlc-user-guide-en.pdf">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/en/vlc-user-guide-en.txt">EN</a></td>
......@@ -72,7 +72,7 @@
<td class="yes">Up-to-date</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/en/vls-user-guide-en-html.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/en/vls-user-guide-en.pdf">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/en/vls-user-guide-en.txt">EN</a></td>
......@@ -86,33 +86,33 @@
<td class="yes">
<a href="/doc/faq/videolan-faq-en.html">EN</a>
<a href="/doc/faq/videolan-faq-es.html">ES</a>
<a href="/doc/faq/videolan-faq-fr.html">FR</a>
<a href="/doc/faq/en/videolan-faq-en.html">EN</a>
<a href="/doc/faq/es/videolan-faq-es.html">ES</a>
<a href="/doc/faq/fr/videolan-faq-fr.html">FR</a>
</td><td class="yes">
<a href="/doc/faq/videolan-faq-en.html">EN</a>
<a href="/doc/faq/videolan-faq-es.html">ES</a>
<a href="/doc/faq/videolan-faq-fr.html">FR</a>
<a href="/doc/faq/en/videolan-faq-en-html.zip">EN</a>
<a href="/doc/faq/es/videolan-faq-es-html.zip">ES</a>
<a href="/doc/faq/fr/videolan-faq-fr-html.zip">FR</a>
</td><td class="yes">
<a href="/doc/faq/videolan-faq-en.pdf">EN</a>
<a href="/doc/faq/videolan-faq-es.pdf">ES</a>
<a href="/doc/faq/videolan-faq-fr.pdf">FR</a>
<a href="/doc/faq/en/videolan-faq-en.pdf">EN</a>
<a href="/doc/faq/es/videolan-faq-es.pdf">ES</a>
<a href="/doc/faq/fr/videolan-faq-fr.pdf">FR</a>
</td><td class="yes">
<a href="/doc/faq/videolan-faq-en.rtf">EN</a>
<a href="/doc/faq/videolan-faq-es.rtf">ES</a>
<a href="/doc/faq/videolan-faq-fr.rtf">FR</a>
<a href="/doc/faq/en/videolan-faq-en.rtf">EN</a>
<a href="/doc/faq/es/videolan-faq-es.rtf">ES</a>
<a href="/doc/faq/fr/videolan-faq-fr.rtf">FR</a>
</td><td class="yes">
<a href="/doc/faq/videolan-faq-en.txt">EN</a>
<a href="/doc/faq/videolan-faq-es.txt">ES</a>
<a href="/doc/faq/videolan-faq-fr.txt">FR</a>
<a href="/doc/faq/en/videolan-faq-en.txt">EN</a>
<a href="/doc/faq/es/videolan-faq-es.txt">ES</a>
<a href="/doc/faq/fr/videolan-faq-fr.txt">FR</a>
</td>
</tr>
......@@ -135,4 +135,4 @@ all that is not in the official documentation: tips and tricks for each
O.S., graphical interfaces, etc...</p>
<? footer('$Id: index.html,v 1.39 2003/07/06 00:54:24 alexis Exp $'); ?>
<? footer('$Id: index.html,v 1.40 2003/07/07 21:20:17 alexis Exp $'); ?>
# Makefile for the VideoLAN Documentation in DocBook XML
# Written by Alexis de Lattre <alexis@videolan.org>
# To build another language than the default one, do 'make LANG=foo'
# Document name
DOC := videolan-howto
# XML declaration
XML_DECL := /usr/lib/sgml/declaration/xml.decl
# Default language (English)
LANG = en
# We build HTML, PDF, RTF and TXT for the Web site
# All available languages (used in 'make clean')
ALL_LANG = en
# Build HTML, PDF, RTF and TXT outputs (for the web site)
all: $(LANG)/$(DOC)-$(LANG).html $(LANG)/$(DOC)-$(LANG).pdf $(LANG)/$(DOC)-$(LANG).rtf $(LANG)/$(DOC)-$(LANG).txt
$(LANG)/$(DOC)-$(LANG).xml: $(DOC).xml
# Extract one language (XML to XML transformation) and prepare the repository
$(LANG)/$(DOC)-$(LANG).xml: *.xml ../common/*.xml ../common/multilanguage.xsl
mkdir -p $(LANG)
xsltproc --stringparam lang $(LANG) ../common/multilanguage.xsl $^ | sed -e 's/id="$(DOC)"/id="$(DOC)-$(LANG)"/' > $@
xsltproc --stringparam lang $(LANG) ../common/multilanguage.xsl $(DOC).xml | sed -e 's/id="$(DOC)"/id="$(DOC)-$(LANG)"/' > $@
cp -R ../../images/documentation $(LANG)/images
$(LANG)/$(DOC)-$(LANG).html: $(LANG)/$(DOC)-$(LANG).xml
jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $^
# HTML output
$(LANG)/$(DOC)-$(LANG).html: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-html.dsl
jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml
mv *.html $(LANG)
rm -f $(LANG)/$(DOC)-$(LANG)-html.zip
cd $(LANG) && zip $(DOC)-$(LANG)-html.zip *.html images/*.jpg
cd $(LANG) && zip $(DOC)-$(LANG)-html.zip *.html images/*.jpg images/*.gif
$(LANG)/$(DOC)-$(LANG).pdf: $(LANG)/$(DOC)-$(LANG).xml
jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(basename $@).tex $(XML_DECL) $^
# PDF output
$(LANG)/$(DOC)-$(LANG).pdf: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-print-noicones.dsl
jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(LANG)/$(DOC)-$(LANG).tex $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml
cd $(LANG) && pdfjadetex $(DOC)-$(LANG).tex
cd $(LANG) && rm -f *.tex *.out *.aux *.log
cd $(LANG) && zip $(DOC)-$(LANG)-pdf.zip $(DOC)-$(LANG).pdf
$(LANG)/$(DOC)-$(LANG).rtf: $(LANG)/$(DOC)-$(LANG).xml
# RTF output
$(LANG)/$(DOC)-$(LANG).rtf: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-print-noicones.dsl
cd $(LANG) && jade -t rtf -d ../../common/stylesheet-print-noicones.dsl -o $(DOC)-$(LANG).rtf $(XML_DECL) $(DOC)-$(LANG).xml
rm -f $(LANG)/$(DOC)-$(LANG)-rtf.zip
cd $(LANG) && zip $(DOC)-$(LANG)-rtf.zip $(DOC)-$(LANG).rtf images/*.jpg
$(LANG)/$(DOC)-$(LANG).txt: $(LANG)/$(DOC)-$(LANG).xml
jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $^ > $^.html
lynx -force_html -dump $^.html > $(LANG)/$(DOC)-$(LANG).txt
rm -f $^.html
# TXT output
$(LANG)/$(DOC)-$(LANG).txt: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-txt.dsl
jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml > $(LANG)/dumpfortxt.html
lynx -force_html -dump $(LANG)/dumpfortxt.html > $(LANG)/$(DOC)-$(LANG).txt
rm -f $(LANG)/dumpfortxt.html
# Delete all outputs
clean:
rm -rf $(LANG)
rm -rf $(ALL_LANG)
# Makefile for the VideoLAN Documentation in DocBook XML
# Written by Alexis de Lattre <alexis@videolan.org>
# To build another language than the default one, do 'make LANG=foo'
# Document name
DOC := videolan-quickstart
# XML declaration
XML_DECL := /usr/lib/sgml/declaration/xml.decl
# Default language (English)
LANG = en
# We build HTML, PDF, RTF and TXT for the Web site
# All available languages (used in 'make clean')
ALL_LANG = en
# Build HTML, PDF, RTF and TXT outputs (for the web site)
all: $(LANG)/$(DOC)-$(LANG).html $(LANG)/$(DOC)-$(LANG).pdf $(LANG)/$(DOC)-$(LANG).rtf $(LANG)/$(DOC)-$(LANG).txt
$(LANG)/$(DOC)-$(LANG).xml: $(DOC).xml
# Extract one language (XML to XML transformation) and prepare the repository
$(LANG)/$(DOC)-$(LANG).xml: *.xml ../common/*.xml ../common/multilanguage.xsl
mkdir -p $(LANG)
xsltproc --stringparam lang $(LANG) ../common/multilanguage.xsl $^ | sed -e 's/id="$(DOC)"/id="$(DOC)-$(LANG)"/' > $@
xsltproc --stringparam lang $(LANG) ../common/multilanguage.xsl $(DOC).xml | sed -e 's/id="$(DOC)"/id="$(DOC)-$(LANG)"/' > $@
cp -R ../../images/documentation $(LANG)/images
$(LANG)/$(DOC)-$(LANG).html: $(LANG)/$(DOC)-$(LANG).xml
jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $^
# HTML output
$(LANG)/$(DOC)-$(LANG).html: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-html.dsl
jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml
mv *.html $(LANG)
rm -f $(LANG)/$(DOC)-$(LANG)-html.zip
cd $(LANG) && zip $(DOC)-$(LANG)-html.zip *.html images/*.jpg
cd $(LANG) && zip $(DOC)-$(LANG)-html.zip *.html images/*.jpg images/*.gif
$(LANG)/$(DOC)-$(LANG).pdf: $(LANG)/$(DOC)-$(LANG).xml
jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(basename $@).tex $(XML_DECL) $^
# PDF output
$(LANG)/$(DOC)-$(LANG).pdf: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-print-noicones.dsl
jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(LANG)/$(DOC)-$(LANG).tex $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml
cd $(LANG) && pdfjadetex $(DOC)-$(LANG).tex
cd $(LANG) && rm -f *.tex *.out *.aux *.log
cd $(LANG) && zip $(DOC)-$(LANG)-pdf.zip $(DOC)-$(LANG).pdf
$(LANG)/$(DOC)-$(LANG).rtf: $(LANG)/$(DOC)-$(LANG).xml
# RTF output
$(LANG)/$(DOC)-$(LANG).rtf: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-print-noicones.dsl
cd $(LANG) && jade -t rtf -d ../../common/stylesheet-print-noicones.dsl -o $(DOC)-$(LANG).rtf $(XML_DECL) $(DOC)-$(LANG).xml
rm -f $(LANG)/$(DOC)-$(LANG)-rtf.zip
cd $(LANG) && zip $(DOC)-$(LANG)-rtf.zip $(DOC)-$(LANG).rtf images/*.jpg
$(LANG)/$(DOC)-$(LANG).txt: $(LANG)/$(DOC)-$(LANG).xml
jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $^ > $^.html
lynx -force_html -dump $^.html > $(LANG)/$(DOC)-$(LANG).txt
rm -f $^.html
# TXT output
$(LANG)/$(DOC)-$(LANG).txt: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-txt.dsl
jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml > $(LANG)/dumpfortxt.html
lynx -force_html -dump $(LANG)/dumpfortxt.html > $(LANG)/$(DOC)-$(LANG).txt
rm -f $(LANG)/dumpfortxt.html
# Delete all outputs
clean:
rm -rf $(LANG)
rm -rf $(ALL_LANG)
# Makefile for the VideoLAN Documentation in DocBook XML
# Written by Alexis de Lattre <alexis@videolan.org>
# To build another language than the default one, do 'make LANG=foo'
# Document name
DOC := vlc-user-guide
# XML declaration
XML_DECL := /usr/lib/sgml/declaration/xml.decl
# Default language (English)
LANG = en
# We build HTML, PDF, RTF and TXT for the Web site
# All available languages (used in 'make clean')
ALL_LANG = en
# Build HTML, PDF, RTF and TXT outputs (for the web site)
all: $(LANG)/$(DOC)-$(LANG).html $(LANG)/$(DOC)-$(LANG).pdf $(LANG)/$(DOC)-$(LANG).rtf $(LANG)/$(DOC)-$(LANG).txt
$(LANG)/$(DOC)-$(LANG).xml: $(DOC).xml
# Extract one language (XML to XML transformation) and prepare the repository
$(LANG)/$(DOC)-$(LANG).xml: *.xml ../common/*.xml ../common/multilanguage.xsl
mkdir -p $(LANG)
xsltproc --stringparam lang $(LANG) ../common/multilanguage.xsl $^ | sed -e 's/id="$(DOC)"/id="$(DOC)-$(LANG)"/' > $@
xsltproc --stringparam lang $(LANG) ../common/multilanguage.xsl $(DOC).xml | sed -e 's/id="$(DOC)"/id="$(DOC)-$(LANG)"/' > $@
cp -R ../../images/documentation $(LANG)/images
$(LANG)/$(DOC)-$(LANG).html: $(LANG)/$(DOC)-$(LANG).xml
jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $^
# HTML output
$(LANG)/$(DOC)-$(LANG).html: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-html.dsl
jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml
mv *.html $(LANG)
rm -f $(LANG)/$(DOC)-$(LANG)-html.zip
cd $(LANG) && zip $(DOC)-$(LANG)-html.zip *.html images/*.jpg
cd $(LANG) && zip $(DOC)-$(LANG)-html.zip *.html images/*.jpg images/*.gif
$(LANG)/$(DOC)-$(LANG).pdf: $(LANG)/$(DOC)-$(LANG).xml
jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(basename $@).tex $(XML_DECL) $^
# PDF output
$(LANG)/$(DOC)-$(LANG).pdf: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-print-noicones.dsl
jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(LANG)/$(DOC)-$(LANG).tex $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml
cd $(LANG) && pdfjadetex $(DOC)-$(LANG).tex
cd $(LANG) && rm -f *.tex *.out *.aux *.log
cd $(LANG) && zip $(DOC)-$(LANG)-pdf.zip $(DOC)-$(LANG).pdf
$(LANG)/$(DOC)-$(LANG).rtf: $(LANG)/$(DOC)-$(LANG).xml
# RTF output
$(LANG)/$(DOC)-$(LANG).rtf: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-print-noicones.dsl
cd $(LANG) && jade -t rtf -d ../../common/stylesheet-print-noicones.dsl -o $(DOC)-$(LANG).rtf $(XML_DECL) $(DOC)-$(LANG).xml
rm -f $(LANG)/$(DOC)-$(LANG)-rtf.zip
cd $(LANG) && zip $(DOC)-$(LANG)-rtf.zip $(DOC)-$(LANG).rtf images/*.jpg
$(LANG)/$(DOC)-$(LANG).txt: $(LANG)/$(DOC)-$(LANG).xml
jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $^ > $^.html
lynx -force_html -dump $^.html > $(LANG)/$(DOC)-$(LANG).txt
rm -f $^.html
# TXT output
$(LANG)/$(DOC)-$(LANG).txt: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-txt.dsl
jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml > $(LANG)/dumpfortxt.html
lynx -force_html -dump $(LANG)/dumpfortxt.html > $(LANG)/$(DOC)-$(LANG).txt
rm -f $(LANG)/dumpfortxt.html
# Delete all outputs
clean:
rm -rf $(LANG)
rm -rf $(ALL_LANG)
# Makefile for the VideoLAN Documentation in DocBook XML
# Written by Alexis de Lattre <alexis@videolan.org>
# To build another language than the default one, do 'make LANG=foo'
# Document name
DOC := vls-user-guide
# XML declaration
XML_DECL := /usr/lib/sgml/declaration/xml.decl
# Default language (English)
LANG = en
# We build HTML, PDF, RTF and TXT for the Web site
# All available languages (used in 'make clean')
ALL_LANG = en
# Build HTML, PDF, RTF and TXT outputs (for the web site)
all: $(LANG)/$(DOC)-$(LANG).html $(LANG)/$(DOC)-$(LANG).pdf $(LANG)/$(DOC)-$(LANG).rtf $(LANG)/$(DOC)-$(LANG).txt
$(LANG)/$(DOC)-$(LANG).xml: $(DOC).xml
# Extract one language (XML to XML transformation) and prepare the repository
$(LANG)/$(DOC)-$(LANG).xml: *.xml ../common/*.xml ../common/multilanguage.xsl
mkdir -p $(LANG)
xsltproc --stringparam lang $(LANG) ../common/multilanguage.xsl $^ | sed -e 's/id="$(DOC)"/id="$(DOC)-$(LANG)"/' > $@
xsltproc --stringparam lang $(LANG) ../common/multilanguage.xsl $(DOC).xml | sed -e 's/id="$(DOC)"/id="$(DOC)-$(LANG)"/' > $@
cp -R ../../images/documentation $(LANG)/images
$(LANG)/$(DOC)-$(LANG).html: $(LANG)/$(DOC)-$(LANG).xml
jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $^
# HTML output
$(LANG)/$(DOC)-$(LANG).html: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-html.dsl
jade -t sgml -d ../common/stylesheet-html.dsl $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml
mv *.html $(LANG)
rm -f $(LANG)/$(DOC)-$(LANG)-html.zip
cd $(LANG) && zip $(DOC)-$(LANG)-html.zip *.html images/*.jpg
cd $(LANG) && zip $(DOC)-$(LANG)-html.zip *.html images/*.jpg images/*.gif
$(LANG)/$(DOC)-$(LANG).pdf: $(LANG)/$(DOC)-$(LANG).xml
jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(basename $@).tex $(XML_DECL) $^
# PDF output
$(LANG)/$(DOC)-$(LANG).pdf: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-print-noicones.dsl
jade -t tex -d ../common/stylesheet-print-noicones.dsl -o $(LANG)/$(DOC)-$(LANG).tex $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml
cd $(LANG) && pdfjadetex $(DOC)-$(LANG).tex
cd $(LANG) && rm -f *.tex *.out *.aux *.log
cd $(LANG) && zip $(DOC)-$(LANG)-pdf.zip $(DOC)-$(LANG).pdf
$(LANG)/$(DOC)-$(LANG).rtf: $(LANG)/$(DOC)-$(LANG).xml
# RTF output
$(LANG)/$(DOC)-$(LANG).rtf: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-print-noicones.dsl
cd $(LANG) && jade -t rtf -d ../../common/stylesheet-print-noicones.dsl -o $(DOC)-$(LANG).rtf $(XML_DECL) $(DOC)-$(LANG).xml
rm -f $(LANG)/$(DOC)-$(LANG)-rtf.zip
cd $(LANG) && zip $(DOC)-$(LANG)-rtf.zip $(DOC)-$(LANG).rtf images/*.jpg
$(LANG)/$(DOC)-$(LANG).txt: $(LANG)/$(DOC)-$(LANG).xml
jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $^ > $^.html
lynx -force_html -dump $^.html > $(LANG)/$(DOC)-$(LANG).txt
rm -f $^.html
# TXT output
$(LANG)/$(DOC)-$(LANG).txt: $(LANG)/$(DOC)-$(LANG).xml ../common/stylesheet-txt.dsl
jade -t sgml -d ../common/stylesheet-txt.dsl -V nochunks $(XML_DECL) $(LANG)/$(DOC)-$(LANG).xml > $(LANG)/dumpfortxt.html
lynx -force_html -dump $(LANG)/dumpfortxt.html > $(LANG)/$(DOC)-$(LANG).txt
rm -f $(LANG)/dumpfortxt.html
# Delete all outputs
clean:
rm -rf $(LANG)
rm -rf $(ALL_LANG)
......@@ -158,13 +158,13 @@ below:</p>
<td class="category">VideoLAN FAQ</td>
<td class="yes">Up-to-date</td>
<td>
<a href="/doc/faq/videolan-faq-en.html">English</a>
<a href="/doc/faq/videolan-faq-es.html">Spanish</a>
<a href="/doc/faq/videolan-faq-fr.html">French</a>
<a href="/doc/faq/en/videolan-faq-en.html">English</a>
<a href="/doc/faq/es/videolan-faq-es.html">Spanish</a>
<a href="/doc/faq/fr/videolan-faq-fr.html">French</a>
</td>
</tr>
</table>
<? footer('$Id: index.html,v 1.49 2003/07/06 00:54:25 alexis Exp $'); ?>
<? footer('$Id: index.html,v 1.50 2003/07/07 21:20:17 alexis Exp $'); ?>
......@@ -149,9 +149,9 @@ libraries and build them yourself:</p>
<td class="category">VideoLAN FAQ</td>
<td class="yes">Up-to-date</td>
<td>
<a href="/doc/faq/videolan-faq-en.html">English</a>
<a href="/doc/faq/videolan-faq-es.html">Spanish</a>
<a href="/doc/faq/videolan-faq-fr.html">French</a>
<a href="/doc/faq/en/videolan-faq-en.html">English</a>
<a href="/doc/faq/es/videolan-faq-es.html">Spanish</a>
<a href="/doc/faq/fr/videolan-faq-fr.html">French</a>
</td>
</tr>
......@@ -170,4 +170,4 @@ libraries and build them yourself:</p>
</tr>
</table>
<? footer('$Id: index.html,v 1.67 2003/07/06 00:54:25 alexis Exp $'); ?>
<? footer('$Id: index.html,v 1.68 2003/07/07 21:20:17 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