From f02a81fa4c34bc8ac2dafad0fd46261c7b21139b Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Mon, 19 Sep 2022 16:02:05 -0700 Subject: [PATCH] Also update COPYRIGHT_YEAR in clientversion.h and teach update-copyrights.sh how to do it --- src/clientversion.h | 2 +- util/update-copyrights.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/clientversion.h b/src/clientversion.h index bc2ab199f..6b805fdc4 100644 --- a/src/clientversion.h +++ b/src/clientversion.h @@ -40,7 +40,7 @@ * Copyright year (2009-this) * Todo: update this when changing our copyright comments in the source */ -#define COPYRIGHT_YEAR 2021 +#define COPYRIGHT_YEAR 2022 #endif //HAVE_CONFIG_H diff --git a/util/update-copyrights.sh b/util/update-copyrights.sh index ba9a9c5e3..f4b1ce2ae 100755 --- a/util/update-copyrights.sh +++ b/util/update-copyrights.sh @@ -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