From d5112907b47168c12f3a8622387d65ce523f51e4 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Mon, 19 Sep 2022 15:49:44 -0700 Subject: [PATCH] Write script to update copyrights --- util/update-copyrights.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 util/update-copyrights.sh diff --git a/util/update-copyrights.sh b/util/update-copyrights.sh new file mode 100755 index 000000000..b243d40e7 --- /dev/null +++ b/util/update-copyrights.sh @@ -0,0 +1,9 @@ +#!/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 + +ack -l -i "201.-202.*Hush dev" | xargs ./util/replace.pl -$1 -$2