cp replace.pl and update-copyrights.sh from hush3

This commit is contained in:
onryo
2023-02-20 15:38:57 +01:00
parent d5daed4cd8
commit 5bfbe3b3fa
2 changed files with 56 additions and 0 deletions

14
util/update-copyrights.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Copyright (c) 2016-2023 The Hush developers
# Released under the GPLv3
# Usage: update-copyrights.sh 2021 2022
# TODO: verify $1 and $2 exist
# TODO: verify ack and xargs exist on this system
# This update comments in source 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
./util/replace.pl "COPYRIGHT_YEAR, $1" "COPYRIGHT_YEAR, $2" configure.ac