\)\([0-9A-Z.]\+\)[ \n]/\2\1/}' pms.html
@# fix xhtml syntax in longtable captions
LC_ALL=C sed -i -e 's%\( *%&%;t;n;bx' pms.html
@# indent algorithms properly, and avoid adding extra vertical
@# space in Konqueror
LC_ALL=C sed -i -e 's/span style="width:/span style="display:-moz-inline-box;display:inline-block;height:1px;width:/' pms.html
@# align algorithm line numbers properly
LC_ALL=C sed -i -e '//{N;s/\n\(class="[^"]\+">\)\([0-9]:<\/span>\)/\1\ \2/}' pms.html
@# fix broken span on title page
LC_ALL=C sed -i -e '/<\/span>]*>\(&[a-z]uml;\)/\1/}' pms.html
pms.bbl: pms.bib pms.tex vc.tex eapi-cheatsheet.pdf
latex pms
bibtex pms
eapi-cheatsheet.pdf: vc.tex
pdflatex eapi-cheatsheet
eapi-cheatsheet-nocombine.pdf: vc.tex
@# cheat sheet with separate pages, for proofreading
pdflatex -jobname eapi-cheatsheet-nocombine \
'\PassOptionsToClass{nocombine}{leaflet}\input{eapi-cheatsheet.tex}'
vc.tex: $(LATEXFILES) vc-git.awk
/bin/sh ./vc
pms.dvi: $(LATEXFILES) pms.bbl vc.tex
latex pms
latex pms
latex pms
dist: $(LATEXFILES) pms.bib vc vc-git.awk vc.tex Makefile
@if test -z $(PV); then \
echo "Usage: $(MAKE) $@ PV="; false; \
fi
tar -cJf pms-$(PV).tar.xz --transform='s%^%pms-$(PV)/%' $^
upload:
scp pms.pdf eapi-cheatsheet.pdf pms*.html pms.css \
dev.gentoo.org:public_html/pms/head/
.default: all
.phony: clean maintainer-clean dist upload