aboutsummaryrefslogtreecommitdiff
path: root/utils/update-copyright.sh
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-01-17 15:51:39 +0300
committerWohlstand <admin@wohlnet.ru>2020-01-17 15:51:39 +0300
commit2b4fd9972f0418e6eea44926c9fada73a7e2eddb (patch)
tree83a694909a2df9b714c64bb56612e6d82f979699 /utils/update-copyright.sh
parent3bd5a50bff5462687377e428933bb1099c30e359 (diff)
downloadlibADLMIDI-2b4fd9972f0418e6eea44926c9fada73a7e2eddb.tar.gz
libADLMIDI-2b4fd9972f0418e6eea44926c9fada73a7e2eddb.tar.bz2
libADLMIDI-2b4fd9972f0418e6eea44926c9fada73a7e2eddb.zip
Create update-copyright.sh
Diffstat (limited to 'utils/update-copyright.sh')
-rwxr-xr-xutils/update-copyright.sh8
1 files changed, 8 insertions, 0 deletions
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