Those of you developing VMODS, may be able to use this small
shell-script to edit your files to match the new field
locations:
------------------------------------------------------------------
#!/bin/sh
for w in \
xid restarts esi_level disable_esi hash_ vary_ digest \
doclose exp cur_method handling sendbody wantbody \
err_ director vcl req_bodybytes ws_req t_resp \
htc client_identity ws http
do
find . ../../lib/libvmod_std -name '*.[ch]' -print |
sed '
' |
while read a
do
if grep "[^e]sp->$w" $a ; then
echo "$a"
sed -i "" "s/\([^e]\)sp->$w/\1sp->req->$w/g" $a
fi
done
done
------------------------------------------------------------------
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
[email protected] | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev