From ac1a0efaaf223d8ce9c44a0f767d5e2bfe356734 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 1 Jul 2008 19:29:01 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/vclflint.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5