2 REM Automatically generate pcap_version.h based on pcap_version.h.in
4 REM The version string comes from VERSION
8 setlocal enableextensions disabledelayedexpansion
10 set "search=%%%%LIBPCAP_VERSION%%%%"
13 if exist %3 del %3 2>nul
15 for /f "delims=" %%i in ('type %2' ) do (
17 setlocal enabledelayedexpansion
18 set "line=!line:%search%=%replace%!"
23 echo pcap_version.h generated