Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2019-11-05 15:25:52 +1000
committerAllan McRae <allan@archlinux.org>2019-11-05 15:25:52 +1000
commit27955a0fee16f817b5569e0bc29bc1498a87ea68 (patch)
tree842859c2d69f8414cd86c519d895d85c21ae5e7c /build-aux
parent1bfae7d14a7bdad777e82912c5c6883deb11aee5 (diff)
Move update-copyright into build-aux
This is a useful function to update all our copyright years. Move it into build-aux so that it is not lost in the switch to meson. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/update-copyright8
1 files changed, 8 insertions, 0 deletions
diff --git a/build-aux/update-copyright b/build-aux/update-copyright
new file mode 100755
index 00000000..eef368b8
--- /dev/null
+++ b/build-aux/update-copyright
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+OLD=$1
+NEW=$2
+
+for file in $(git grep -l "Copyright .* Pacman Development" | grep -v "\.po"); do \
+ sed -i -e "/Copyright (/s/-${OLD}/-${NEW}/" -e "/Copyright (/s/ ${OLD}/ ${OLD}-${NEW}/" "$file"
+done