r2873 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Tue Jul 1 21:29:01 CEST 2008
Author: phk
Date: 2008-07-01 21:29:01 +0200 (Tue, 01 Jul 2008)
New Revision: 2873
Modified:
trunk/varnish-cache/bin/varnishd/vclflint.sh
Log:
Make it possible to run custom VCL programs through flexelint.
Modified: trunk/varnish-cache/bin/varnishd/vclflint.sh
===================================================================
--- trunk/varnish-cache/bin/varnishd/vclflint.sh 2008-07-01 19:23:56 UTC (rev 2872)
+++ trunk/varnish-cache/bin/varnishd/vclflint.sh 2008-07-01 19:29:01 UTC (rev 2873)
@@ -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
More information about the varnish-commit
mailing list