From 335fe2e9bdafe85093e06c8dd7de2bbd703e641f Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Wed, 19 Dec 2012 18:36:50 -0500 Subject: [PATCH] Adding a shell script variant of web assets generator mostly just for silly comparison, as a shell scripting exercise I guess. --- conway/gen-web-assets | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/conway/gen-web-assets b/conway/gen-web-assets index 6592552..ad28c95 100755 --- a/conway/gen-web-assets +++ b/conway/gen-web-assets @@ -1,8 +1,29 @@ #!/bin/sh set -e +case "$1" in + "shell") +cat > _tmp.go < web_assets.go +rm -v _tmp.go + ;; + *) cd web_assets go build -x . ./web_assets index.html > _tmp.go gofmt < _tmp.go > ../web_assets.go rm -vf _tmp.go + ;; +esac