Also update COPYRIGHT_YEAR in clientversion.h and teach update-copyrights.sh how to do it

This commit is contained in:
Jonathan "Duke" Leto
2022-09-19 16:02:05 -07:00
parent b7b269448f
commit f02a81fa4c
2 changed files with 5 additions and 1 deletions

View File

@@ -6,4 +6,8 @@
# TODO: verify $1 and $2 exist
# TODO: verify ack and xargs exist on this system
# This update comments in soure code
ack -l -i "20..-20..*Hush dev" | xargs ./util/replace.pl -$1 -$2
# This updates the define which is used by C++ help output
./util/replace.pl "COPYRIGHT_YEAR $1" "COPYRIGHT_YEAR $2" src/clientversion.h