From 55504fefce3078ac683b85508fa8af9e4d1b2059 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 29 Aug 2026 20:06:44 -0400 Subject: admin/*: added. --- admin/orphanize | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 admin/orphanize (limited to 'admin/orphanize') diff --git a/admin/orphanize b/admin/orphanize new file mode 100755 index 0000000..40da6a2 --- /dev/null +++ b/admin/orphanize @@ -0,0 +1,34 @@ +#!/bin/sh + +source ~/sbostuff/sbostuff.sh +export SBOLINT=no + +usage() { + cat < [ ...] +orphanize -m +EOF +} + + +orphanize_builds() { + local b + for b in "$@"; do + cdsb "$b" && sbonewmaint nobody && git commit -a -m'Orphaned (unmaintained).' + done +} + +orphanize_maint() { + local i + cdsb + for i in $( git grep "^MAINTAINER=\"$@\"" '*/*/*.info' | cut -d/ -f1,2 ); do + orphanize_builds "$i" + done +} + +case "$1" in + "-m") shift; orphanize_maint "$@" ;; + ""|"-") usage ;; + *) orphanize_builds "$@" ;; +esac -- cgit v1.2.3