From c8fc3fa101b2323033a83294e0a00a3e78fdd1da Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 18 Sep 2026 05:18:17 -0400 Subject: sbols: add -o (orphans) option. --- admin/sbols | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/admin/sbols b/admin/sbols index 9edbfab..d5bf613 100755 --- a/admin/sbols +++ b/admin/sbols @@ -27,6 +27,7 @@ Options: -M Show all builds for given maintainer. If this option is used, it must be the last option (this is done to avoid the need to quote maintainer names with spaces in them). + -o Same as -M "orphaned - no maintainer"; lists orphans. -m Show maintainer name and email. -d Show description (from top of slack-desc). -r Show REQUIRES. @@ -47,9 +48,10 @@ if [ "$1" = "--help" -o "$1" = "" ]; then usage ; exit 0 fi -while getopts ":MmdraghA" OPT; do +while getopts ":MomdraghA" OPT; do case "$OPT" in M) opt_M=1 ;; + o) opt_o=1 ;; m) opt_m=1 ;; d) opt_d=1 ;; r) opt_r=1 ;; @@ -65,6 +67,11 @@ shift $(($OPTIND - 1)) [ "$SBO_GITROOT" != "" ] && cd "$SBO_GITROOT" [ -d .git -a -d system -a -d academic ] || die "not a valid SBo git checkout" +if [ "$opt_o" = "1" ]; then + opt_M=1 + set "orphaned - no maintainer" +fi + if [ "$opt_M" = "1" ]; then cdsb builds="$( git grep -l "$*" '*/*/*.info' | cut -d/ -f1,2 )" @@ -72,6 +79,8 @@ if [ "$opt_M" = "1" ]; then set $builds fi +[ "$*" = "" ] && usage && exit 1 + for i; do if cdsb $i; then i="$( basename $( pwd ) )" -- cgit v1.2.3