Add some maintenance scripts. - parlay - yet another gentoo overlay
HTML git clone https://git.parazyd.org/parlay
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit f2b68881276eb44aaa6300fb2aca623c9c4da9ef
DIR parent 7b512764981e35e63b00618ce3eb7f84253ac804
HTML 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(-)
---
DIR 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
DIR 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