tool/build-loop
This commit is contained in:
parent
eb2a1a1e85
commit
bdadb4059e
@ -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
12
tool/build-loop
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
while :
|
||||
do
|
||||
tool/build
|
||||
if [ "$?" == "0" ]; then
|
||||
echo "success"
|
||||
else
|
||||
echo "error"
|
||||
fi
|
||||
sleep 1
|
||||
done
|
Loading…
x
Reference in New Issue
Block a user