commit f2b68881276eb44aaa6300fb2aca623c9c4da9ef parent 7b512764981e35e63b00618ce3eb7f84253ac804 Author: parazyd <parazyd@dyne.org> Date: Tue, 5 Jan 2021 16:51:56 +0100 Add some maintenance scripts. Diffstat:
A | Makefile | | | 12 | ++++++++++++ |
A | scripts/update_copyright.sh | | | 6 | ++++++ |
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -0,0 +1,12 @@ +all: + @echo Available targets: + @echo make check + @echo make update-copyright + +check: + repoman -d full + +update-copyright: + ./scripts/update_copyright.sh + +.PHONY: all check update-copyright diff --git a/scripts/update_copyright.sh b/scripts/update_copyright.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +find . -type f -name '*.ebuild' | while read ebuild; do + sed -e "s/^# Copyright .*/# Copyright 1999-$(date +%Y) Gentoo Authors/" \ + -i "$ebuild" +done