From bdadb4059e0f7a0824c9d16e16e02ea65df998e1 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Tue, 9 Oct 2012 11:30:23 -0700 Subject: [PATCH] tool/build-loop --- README.md | 6 ++++++ tool/build-loop | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 tool/build-loop diff --git a/README.md b/README.md index 8e96bbc..44ad5c0 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/tool/build-loop b/tool/build-loop new file mode 100755 index 0000000..5520ea6 --- /dev/null +++ b/tool/build-loop @@ -0,0 +1,12 @@ +#!/bin/bash + +while : +do + tool/build + if [ "$?" == "0" ]; then + echo "success" + else + echo "error" + fi + sleep 1 +done