]> err.no Git - varnish/commitdiff
Make it possible to run custom VCL programs through flexelint.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 1 Jul 2008 19:29:01 +0000 (19:29 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 1 Jul 2008 19:29:01 +0000 (19:29 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2873 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/vclflint.sh

index 802f4ed287ad8c4a02ace94f8936c66596f490d2..cd3e7d92d04155865870dcc600c2a2926a22d871 100755 (executable)
@@ -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