From: phk Date: Tue, 1 Jul 2008 19:29:01 +0000 (+0000) Subject: Make it possible to run custom VCL programs through flexelint. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac1a0efaaf223d8ce9c44a0f767d5e2bfe356734;p=varnish Make it possible to run custom VCL programs through flexelint. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2873 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/vclflint.sh b/varnish-cache/bin/varnishd/vclflint.sh index 802f4ed2..cd3e7d92 100755 --- a/varnish-cache/bin/varnishd/vclflint.sh +++ b/varnish-cache/bin/varnishd/vclflint.sh @@ -2,6 +2,12 @@ # # Run flexelint on the VCL output -./varnishd -C -b localhost > /tmp/_.c +if [ "x$1" = "x" ] ; then + ./varnishd -C -b localhost > /tmp/_.c +elif [ -f $1 ] ; then + ./varnishd -C -f $1 > /tmp/_.c +else + echo "usage!" 1>&2 +fi flexelint vclflint.lnt /tmp/_.c