| 1 |
all:
|
| 2 |
iconv -f latin2 -t utf8 README-hu.txt >README-hu-u.txt
|
| 3 |
sed -i 's/^== Contents//' README-hu-u.txt
|
| 4 |
sed -i 's/^:lang: hu//' README-hu-u.txt
|
| 5 |
#a2x -v -f pdf README-hu-u.txt
|
| 6 |
#a2x -v -f pdf --dblatex-opts="-P latex.output.revhistory=0 -P doc.publisher.show=0" README-hu-u.txt
|
| 7 |
a2x -v -f pdf --dblatex-opts="-P latex.output.revhistory=0 -P doc.toc.show=0 -P doc.publisher.show=0" README-hu-u.txt
|
| 8 |
|
| 9 |
fop:
|
| 10 |
sed 's/^== Contents//' <README-hu.txt >README-hu-u.txt
|
| 11 |
asciidoc --doctype=article -b docbook -a encoding=latin2 README-hu-u.txt
|
| 12 |
xsltproc titlepage-hacks-fop.xsl README-hu-u.xml >README-hu.fo
|
| 13 |
fop -c /usr/share/fop/dejavu-ttf.xml -fo README-hu.fo -pdf README-hu.pdf
|
| 14 |
|
| 15 |
latex:
|
| 16 |
iconv -f latin2 -t utf8 README-hu.txt >README-hu-u.txt
|
| 17 |
asciidoc --unsafe --backend=latex -a toc README-hu-u.txt
|
| 18 |
iconv -f utf8 -t latin2 README-hu-u.tex >README-hu.tex
|
| 19 |
dos2unix README-hu.tex
|
| 20 |
sed -i 's/^\(.usepackage{type1ec}\)/%\1/' README-hu.tex
|
| 21 |
sed -i 's/\(.*\[\)english\(\].*\)/\1magyar\2/' README-hu.tex
|
| 22 |
sed -i 's/^\(.usepackage{ucs}\)/%\1/' README-hu.tex
|
| 23 |
sed -i 's/^\(.usepackage\[\)utf8x\(\]{inputenc}\)/\1latin2\2/' README-hu.tex
|
| 24 |
sed -i 's/{Revision:}/{Verziószám:}/' README-hu.tex
|
| 25 |
pdflatex README-hu.tex
|
| 26 |
pdflatex README-hu.tex
|
| 27 |
pdflatex README-hu.tex
|
| 28 |
|
| 29 |
|
| 30 |
clean:
|
| 31 |
rm -f README-hu.{aux,idx,log,out,pdf,toc,tex,fo} README-hu-u.{txt,tex,xml,pdf}
|