From eccce6b45102df33d16da4fc324f1dd64b665d18 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 18 Sep 2026 06:31:20 -0400 Subject: sbols: rename options again, squelch cdsb errs, return false if no builds found. --- admin/sbols | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'admin') diff --git a/admin/sbols b/admin/sbols index 9de8d56..ddd187c 100755 --- a/admin/sbols +++ b/admin/sbols @@ -16,7 +16,7 @@ usage() { cat < | [ ...] ] +Usage: $SELF [-[onsrcdla] ...] [ -m | [ ...] ] Build arguments are build names as used with cdsb: category/build, or just build, and partial matches are supported. For each one, show the @@ -33,8 +33,8 @@ Options: -r Show REQUIRES. -c Show last git commit date/author/description (slow!). -d Show dependees (requires hoorex). - -a Same as -nsr (show all info, except last commit and dependees). - -A Same as -nsrch (show all info). + -l Same as -nsr (show "long" info, except last commit and dependees). + -a Same as -nsrch (show all info). Environment: SBO_GITROOT - set this to the path of the local SBo git clone. @@ -48,17 +48,17 @@ if [ "$1" = "--help" -o "$1" = "" ]; then usage ; exit 0 fi -while getopts ":monsracdA" OPT; do +while getopts ":monsrcdla" OPT; do case "$OPT" in m) opt_m=1 ;; o) opt_o=1 ;; n) opt_n=1 ;; s) opt_s=1 ;; r) opt_r=1 ;; - a) opt_n=1 ; opt_s=1 ; opt_r=1 ;; c) opt_c=1 ;; d) opt_d=1 ;; - A) opt_n=1 ; opt_s=1 ; opt_r=1 ; opt_c=1 ; opt_d=1 ;; + l) opt_n=1 ; opt_s=1 ; opt_r=1 ;; + a) opt_n=1 ; opt_s=1 ; opt_r=1 ; opt_c=1 ; opt_d=1 ;; *) die "invalid option -$OPTARG, try --help" ;; esac done @@ -81,8 +81,11 @@ fi [ "$*" = "" ] && usage && exit 1 +ret=1 + for i; do - if cdsb $i; then + if cdsb $i 2>/dev/null; then + ret=0 i="$( basename $( pwd ) )" prgcat="$( pwd | rev | cut -d/ -f1,2 | rev )" echo -n $prgcat @@ -105,6 +108,8 @@ for i; do fi echo else - warn "$i not found in repo" + warn "build $i not found in repo" fi done + +exit $ret -- cgit v1.2.3