#!/bin/sh

if [ "x$1" = "x-ok" -a -f _.fl ] ; then
	echo "Saved as reference"
	mv _.fl _.fl.old
	exit 0
fi

flexelint \
	../flint.lnt \
	flint.lnt \
	-I. \
	-I../../include \
	-I../../lib/libvgz \
	-I../.. \
	-I/usr/local/include \
	-DVARNISH_STATE_DIR=\"foo\" \
	cache/*.c \
	common/*.c \
	storage/*.c \
	waiter/*.c \
	hash/*.c \
	mgt/*.c \
	../../lib/libvarnish/*.c \
	../../lib/libvarnishcompat/execinfo.c \
	../../lib/libvcl/*.c \
	../../lib/libvmod_std/*.c \
	2>&1 | tee _.fl

if [ -f _.fl.old ] ; then
	diff -u _.fl.old _.fl
fi

if [ "x$1" = "x-ok" ] ; then
	echo "Saved as reference"
	mv _.fl _.fl.old
fi

#!/bin/sh

if [ "x$1" = "x-ok" -a -f _.fl ] ; then
	echo "Saved as reference"
	mv _.fl _.fl.old
	exit 0
fi

flexelint \
	../flint.lnt \
	flint.lnt \
	-I. \
	-I../../include \
	-I../../lib/libvgz \
	-I../.. \
	-I/usr/local/include \
	-DVARNISH_STATE_DIR=\"foo\" \
	*.c \
	common/*.c \
	storage/*.c \
	waiter/*.c \
	hash/*.c \
	mgt/*.c \
	../../lib/libvarnish/*.c \
	../../lib/libvarnishcompat/execinfo.c \
	../../lib/libvcl/*.c \
	../../lib/libvmod_std/*.c \
	2>&1 | tee _.fl

if [ -f _.fl.old ] ; then
	diff -u _.fl.old _.fl
fi

if [ "x$1" = "x-ok" ] ; then
	echo "Saved as reference"
	mv _.fl _.fl.old
fi

--- 
+++ 
@@ -15,7 +15,7 @@
 	-I../.. \
 	-I/usr/local/include \
 	-DVARNISH_STATE_DIR=\"foo\" \
-	*.c \
+	cache/*.c \
 	common/*.c \
 	storage/*.c \
 	waiter/*.c \
Update to match new layout
