From 8c79c1ef47f34050904766c7e1238da8bec768a5 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sun, 15 Dec 2019 22:27:00 -0800 Subject: label-files: make it easier to label files with repo Signed-off-by: Robin H. Johnson --- label-files.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 label-files.sh diff --git a/label-files.sh b/label-files.sh new file mode 100644 index 0000000..5eced78 --- /dev/null +++ b/label-files.sh @@ -0,0 +1,2 @@ +#!/bin/bash +for f in $(git grep -L -e '# gentoo-infra:') ; do p=$( git ls-files --full-name $f) ; s="# gentoo-infra: infra/githooks.git:${f}" ; sed -i "2i${s}" $f ; done ; -- cgit v1.2.3-65-gdbad