| 24 |
24 |
zip -Xr9Dq xubuntu-docs.epub * |
| 25 |
25 |
|
| 26 |
26 |
pdf: |
|
27 |
printf "<itemizedlist>\n\t<listitem><para>Attributed on each translation's page.</para></listitem>\n</itemizedlist>\n" > C/translators.xml |
|
28 |
xsltproc --stringparam paper.type "A4" --xinclude -o fo/C-A4.fo $(XUBUNTUXSL_PDF) C/index.xml |
|
29 |
sed -i 's@\(>The contributors to\) this translation of the \(documentation are:</\)@\1 the various translations of this \2@' fo/C-A4.fo |
| 27 |
30 |
mkdir -p ../build/C |
| 28 |
|
printf "<itemizedlist>\n\t<listitem><para>Attributed on each translation's page.</para></listitem>\n</itemizedlist>\n" > C/translators.xml |
| 29 |
|
sed -i 's@\(>The contributors to\) this translation of the \(documentation are:</\)@\1 the various translations of this \2@' fo/C.fo |
| 30 |
|
for paper in A4 USletter; do \ |
| 31 |
|
xsltproc --stringparam paper.type "$$paper" --xinclude -o fo/C-$$paper.fo $(XUBUNTUXSL_PDF) C/index.xml; \ |
| 32 |
|
fop -c libs/xubuntu-docbook-pdf.xml fo/C-$$paper.fo -pdf ../build/C/xubuntu-documentation-$$paper.pdf; \ |
| 33 |
|
done |
|
31 |
fop -c libs/xubuntu-docbook-pdf.xml fo/C-A4.fo -pdf ../build/C/xubuntu-documentation-A4.pdf |
|
32 |
sed 's@\(page-width\)="[^"]*" \(page-height\)="[^"]*"@\1="8.5in" \2="11in"@g' fo/C-A4.fo > fo/C-USletter.fo |
|
33 |
fop -c libs/xubuntu-docbook-pdf.xml fo/C-USletter.fo -pdf ../build/C/xubuntu-documentation-USletter.pdf |
| 34 |
34 |
|
| 35 |
35 |
pdf-test: |
|
36 |
printf "<itemizedlist>\n\t<listitem><para>Attributed on each translation's page.</para></listitem>\n</itemizedlist>\n" > C/translators.xml |
|
37 |
xsltproc --stringparam paper.type "A4" --stringparam monospace.font-family "Droid Sans" --stringparam title.font.family "Droid Sans" --stringparam body.font.family "Droid Sans" --xinclude -o fo/C-A4.fo $(XUBUNTUXSL_PDF) C/index.xml |
|
38 |
sed -i 's@\(>The contributors to\) this translation of the \(documentation are:</\)@\1 the various translations of this \2@' fo/C-A4.fo |
| 36 |
39 |
mkdir -p ../build/C |
| 37 |
|
printf "<itemizedlist>\n\t<listitem><para>Attributed on each translation's page.</para></listitem>\n</itemizedlist>\n" > C/translators.xml |
| 38 |
|
for paper in A4 USletter; do \ |
| 39 |
|
xsltproc --stringparam paper.type "$$paper" --stringparam monospace.font-family "Droid Sans" --stringparam title.font.family "Droid Sans" --stringparam body.font.family "Droid Sans" --xinclude -o fo/C-$$paper.fo $(XUBUNTUXSL_PDF) C/index.xml; \ |
| 40 |
|
fop -c libs/xubuntu-docbook-pdf.xml fo/C-$$paper.fo -pdf ../build/C/xubuntu-documentation-$$paper.pdf; \ |
| 41 |
|
done |
|
40 |
fop -c libs/xubuntu-docbook-pdf.xml fo/C-A4.fo -pdf ../build/C/xubuntu-documentation-A4.pdf |
|
41 |
sed 's@\(page-width\)="[^"]*" \(page-height\)="[^"]*"@\1="8.5in" \2="11in"@g' fo/C-A4.fo > fo/C-USletter.fo |
|
42 |
fop -c libs/xubuntu-docbook-pdf.xml fo/C-USletter.fo -pdf ../build/C/xubuntu-documentation-USletter.pdf |
| 42 |
43 |
|
| 43 |
44 |
style: |
| 44 |
45 |
mkdir -p ../build/libs |
| … |
| 70 |
71 |
../scripts/translate.sh $(TRANSOPTS) |
| 71 |
72 |
../scripts/translators.sh $(TRANSOPTS) |
| 72 |
73 |
for dir in $(TRANSLATIONS); do \ |
|
74 |
xsltproc --stringparam paper.type "A4" --xinclude -o fo/$$dir-A4.fo $(XUBUNTUXSL_PDF) $$dir/index.xml; \ |
| 73 |
75 |
mkdir -p ../build/$$dir; \ |
| 74 |
|
for paper in A4 USletter; do \ |
| 75 |
|
xsltproc --stringparam paper.type "$$paper" --xinclude -o fo/$$dir-$$paper.fo $(XUBUNTUXSL_PDF) $$dir/index.xml; \ |
| 76 |
|
fop -c libs/xubuntu-docbook-pdf.xml fo/$$dir-$$paper.fo -pdf ../build/$$dir/xubuntu-documentation-$$paper.pdf; \ |
| 77 |
|
done \ |
|
76 |
fop -c libs/xubuntu-docbook-pdf.xml fo/$$dir-A4.fo -pdf ../build/$$dir/xubuntu-documentation-A4.pdf; \ |
|
77 |
sed 's@\(page-width\)="[^"]*" \(page-height\)="[^"]*"@\1="8.5in" \2="11in"@g' fo/$$dir-A4.fo > fo/$$dir-USletter.fo; \ |
|
78 |
fop -c libs/xubuntu-docbook-pdf.xml fo/$$dir-USletter.fo -pdf ../build/$$dir/xubuntu-documentation-USletter.pdf; \ |
| 78 |
79 |
done |
| 79 |
80 |
|
| 80 |
81 |
test: get-translations |