docs/publish.sh @ ee62f412c6ef

Modified main execution

Checking for arguments has been moved to the executable and render_files takes
the source and destination as arguments. These default to '.' and './build' for
the d executable.

Moving argument checking to the executable and passing source and destination into
d.render_files allows custom executables, like the included 'bin/da' example.
author Mattijs Hoitink <mattijs@monkeyandmachine.com>
date Mon, 06 Feb 2012 15:45:14 +0100
parents a8d51959358b
children 895de4f8db57
#!/usr/bin/env bash

rm -rf ./build
~/lib/virtualenvs/d/bin/python ../bin/d
hg -R ~/src/sjl.bitbucket.org pull -u
rsync --delete -a ./build/ ~/src/sjl.bitbucket.org/d
hg -R ~/src/sjl.bitbucket.org commit -Am 'd: Update site.'
hg -R ~/src/sjl.bitbucket.org push