# Makefile - Trio RDF API
# Copyright 2007, Sean B. Palmer, inamidst.com
# Licensed under the Eiffel Forum License 2.
# http://inamidst.com/sw/trio/Makefile

archive: index.html
	hg archive -t tbz2 trio.tar.bz2
	hg bundle --base null trio.hg
	sed -Ei '' 's/[0-9]{4}-[0-9]{2}-[0-9]{2}, rev [0-9]+/'`date \
                    +%Y-%m-%d`', rev '`hg id -n | cut -d + -f 1`/g index.html

pull: force
	hg pull -u static-http://inamidst.com/sw/trio/

test: force
	./test.py

version: archive ../../bin/upload
        # @@ Refuse to do this unless trivial tests pass
	rsync -av --delete ./ ../../sw/trio/
	up # upload to remove server

force: ;

# EOF
