GETBODY=sed -e '1,/
/d;/<\/body>/,$$d'\
-e 's/
/:\#\#}{\#FOOTER\#:/'
index.wml mypublications-bib.wml: mypublications.bib Makefile
bibtex2html -d -q mypublications.bib
( echo '';\
echo '';\
$(GETBODY) mypublications.html;\
echo '
') > index.wml.pre
( echo '';\
$(GETBODY) -e 's/.*<\/h1>//' mypublications-bib.html;\
echo '
')\
> mypublications-bib.wml.pre
rm -rf mypublications.html
rm -rf mypublications-bib.html
mv mypublications-bib.wml.pre mypublications-bib.wml
mv index.wml.pre index.wml
sterile: clean
clean:
rm -rf index.wml mypublications-bib.wml