#!/bin/sh
#
# Run flexelint on the VCL output

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 

#!/bin/sh
#
# Run flexelint on the VCL output

./varnishd -C -b localhost > /tmp/_.c

flexelint vclflint.lnt /tmp/_.c 

--- 
+++ 
@@ -2,12 +2,6 @@
 #
 # Run flexelint on the VCL output
 
-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
+./varnishd -C -b localhost > /tmp/_.c
 
 flexelint vclflint.lnt /tmp/_.c 
Make it possible to run custom VCL programs through flexelint.



git-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@2873 d4fa192b-c00b-0410-8231-f00ffab90ce4
