Files
hush3/util/update-copyrights.sh
Jonathan "Duke" Leto 86a2c1c73c Lern 2 spel
2022-09-19 16:10:02 -07:00

14 lines
457 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) 2016-2022 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