diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-09-18 05:05:16 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-09-18 05:06:17 -0400 |
| commit | 8e880469bf4c2eaab6a71f48e6320070b3ea66a4 (patch) | |
| tree | 5eb04ae4a2a00a038f807d1f463840a8f6656b92 | |
| parent | cb8ad17eff719664b77b8cc3146d22fc7993746e (diff) | |
| download | sbostuff-8e880469bf4c2eaab6a71f48e6320070b3ea66a4.tar.gz | |
sbols: rename dependee option to -h (for "hoorex"; easier to remember than -x).
| -rwxr-xr-x | admin/sbols | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/admin/sbols b/admin/sbols index dd64e1b..9edbfab 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 [-mdrag] [ -M <maintainer> | <build> [<build> ...] ] +Usage: $SELF [-mdrghaA] [ -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 @@ -31,7 +31,7 @@ Options: -d Show description (from top of slack-desc). -r Show REQUIRES. -g Show last git commit date/author/desciption (slow!). - -x Show dependees (requires hoorex). + -h Show dependees (requires hoorex). -a Same as -mdr (show all info, except git and dependees). -A Same as -mdrgh (show all info). @@ -47,7 +47,7 @@ if [ "$1" = "--help" -o "$1" = "" ]; then usage ; exit 0 fi -while getopts ":MmdragxA" OPT; do +while getopts ":MmdraghA" OPT; do case "$OPT" in M) opt_M=1 ;; m) opt_m=1 ;; @@ -55,8 +55,8 @@ while getopts ":MmdragxA" OPT; do r) opt_r=1 ;; a) opt_m=1 ; opt_d=1 ; opt_r=1 ;; g) opt_g=1 ;; - x) opt_x=1 ;; - A) opt_m=1 ; opt_d=1 ; opt_r=1 ; opt_g=1 ; opt_x=1 ;; + h) opt_h=1 ;; + A) opt_m=1 ; opt_d=1 ; opt_r=1 ; opt_g=1 ; opt_h=1 ;; *) die "invalid option -$OPTARG, try --help" ;; esac done @@ -90,7 +90,7 @@ for i; do if [ "$opt_g" = "1" ]; then echo -n " $( git -P log -n1 --format="%as;%an;%s" . | sed "s,;$prgcat: ,;,")" fi - if [ "$opt_x" = "1" ]; then + if [ "$opt_h" = "1" ]; then x="$( hoorex -a $i | cut -d' ' -f2- )" [ "$x" != "" ] && echo -n " | $x" fi |
