From 2b4fd9972f0418e6eea44926c9fada73a7e2eddb Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Fri, 17 Jan 2020 15:51:39 +0300 Subject: Create update-copyright.sh --- utils/update-copyright.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 utils/update-copyright.sh (limited to 'utils/update-copyright.sh') diff --git a/utils/update-copyright.sh b/utils/update-copyright.sh new file mode 100755 index 0000000..6ff0dee --- /dev/null +++ b/utils/update-copyright.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +find . -type f -exec grep -Il "Copyright" {} \; \ +| grep -v \.git \ +| while read file; \ +do \ + LC_ALL=C sed -b -i "s/\(.*Copyright.*\)[0-9]\{4\}\( *Vitaly Novichkov\)/\1`date +%Y`\2/" "$file"; \ +done -- cgit v1.2.3