algotutor:

dist:
	rm -rf ~/export/algotutor/
	cp -a ~/active/algotutor/ ~/export/algotutor/
	cp -a ~/public_html/p/algotutor/ ~/export/algotutor/doc/
	(cd ~/export/algotutor/doc; rm gpl.html main.css header.en.shtml ;\
	cd ~/public_html/i/ ; cp -a gpl.html main.css header.en.shtml ~/export/algotutor/doc/ ;\
	cd -; perl -ne 'print "$$1\n" if m#/i/(.*?\.png)#' *.shtml > a ;\
	cd -; cp `cat ~/export/algotutor/doc/a` ~/export/algotutor/doc/ ;\
	cd - ; rm a; perl -i -pe 's#".*/i/(\w+/)*(.*?\.png)"#"$$2"#g' *header*.shtml *footer*.shtml )
