diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-09-18 06:31:20 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-09-18 06:31:20 -0400 |
| commit | eccce6b45102df33d16da4fc324f1dd64b665d18 (patch) | |
| tree | 7bcdd700ea276bd5aa062f53962de6b3b450c350 | |
| parent | 43aa9acd4d800e119903b0c3f5d46265546b24d3 (diff) | |
| download | sbostuff-eccce6b45102df33d16da4fc324f1dd64b665d18.tar.gz | |
sbols: rename options again, squelch cdsb errs, return false if no builds found.
| -rwxr-xr-x | admin/sbols | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/admin/sbols b/admin/sbols index 9de8d56..ddd187c 100755 --- a/admin/sbols +++ b/admin/sbols @@ -16,7 +16,7 @@ usage() { cat <<EOF $SELF - query SBo git tree for info on builds -Usage: $SELF [-onsdchaA] [ -m <maintainer> | <build> [<build> ...] ] +Usage: $SELF [-[onsrcdla] ...] [ -m <maintainer> | <build> [<build> ...] ] 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 |
