tool/build-loop

This commit is contained in:
Mark McGranaghan 2012-10-09 11:30:23 -07:00
parent eb2a1a1e85
commit bdadb4059e
2 changed files with 18 additions and 0 deletions

View File

@ -29,6 +29,12 @@ $ tool/build
$ open site/index.html
```
To build continuously in a loop:
```console
$ tool/build-loop
```
Generation requires the [`pygmentize`](http://pygments.org/)
binary for syntax highlighting.

12
tool/build-loop Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
while :
do
tool/build
if [ "$?" == "0" ]; then
echo "success"
else
echo "error"
fi
sleep 1
done