zeek/auxil/zeek-aux/.update-changes.cfg
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

15 lines
372 B
INI

# Automatically adapt version in files.
function new_version_hook
{
local version=$1
replace_version_in_rst README $version
local file=zeek-archiver/zeek-archiver.cc
cat $file | sed -e "s#\([[:space:]]*constexpr auto ZEEK_ARCHIVER_VERSION[[:space:]]*=[[:space:]]*\)\".*\";#\1\"v$version\";#g" \
>$file.tmp
mv $file.tmp $file
git add $file
}