test: svn2cvs.pl test.sh
	./test.sh 2>&1 | tee log || vi -R log

tigris:
	./svn2cvs.pl file:///home/dpavlin/private/svn/svn2cvs/trunk/ :pserver:dpavlin@cvs.tigris.org:/cvs svn2cvs/src

webpac:
	./svn2cvs.pl svn+ssh://dpavlin@mjesec.ffzg.hr/home/dpavlin/svn/webpac/trunk/ :ext:dpavlin@webpac.cvs.sourceforge.net:/cvsroot/webpac webpac

index:
	@pod2html --noindex ./svn2cvs.pl | sed -e 's#<head>#<head>\
 <style type="text/css">\
/* <![CDATA[ */\
@import "http://www.tigris.org/branding/css/tigris.css";\
@import "http://www.tigris.org/branding/css/inst.css";\
/*  ]]> */\
 </style>\
  <link rel="stylesheet" type="text/css" href="http://www.tigris.org/branding/css/print.css" media="print" />\
<script src="http://www.tigris.org/branding/scripts/tigris.js" type="text/javascript">\
</script>#' \
	-e 's,</*strong>,,ig' -e 's,<hr[^>]*>,,ig' \
	-e 's,<h1>,<h3>,ig' -e 's,</h1>,</h3>,gi' \
	-e 's,<h3><a name="name">NAME</a></h3>,,' \
	> www/index.html
	@rm pod2htm*.tmp
	cd www && cvs commit -m "new version of homepage"

tidy:
	perltidy -et=4 -i=4 -ce svn2cvs.pl && mv svn2cvs.pl.tdy svn2cvs.pl
