From 27955a0fee16f817b5569e0bc29bc1498a87ea68 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 5 Nov 2019 15:25:52 +1000 Subject: 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 --- build-aux/update-copyright | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 build-aux/update-copyright (limited to 'build-aux') 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 -- cgit v1.2.3-54-g00ecf