aboutsummaryrefslogtreecommitdiff
path: root/utils/update-copyright.sh
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-02-22 13:04:09 +0300
committerWohlstand <admin@wohlnet.ru>2020-02-22 13:04:09 +0300
commit58c5becbdfd451b4181661a5ff2d3e556e4e8501 (patch)
tree3cca40873685179f2f6a3ed8a90a6a3760011e48 /utils/update-copyright.sh
parent5e5f59c9a31a206195f7a9d48fa33f3d9b7c449c (diff)
parentbdb7f81da3e43db01f4ab5781287d22ecb56e025 (diff)
downloadlibADLMIDI-58c5becbdfd451b4181661a5ff2d3e556e4e8501.tar.gz
libADLMIDI-58c5becbdfd451b4181661a5ff2d3e556e4e8501.tar.bz2
libADLMIDI-58c5becbdfd451b4181661a5ff2d3e556e4e8501.zip
Merge branch 'master' of github.com:Wohlstand/libADLMIDI
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