aboutsummaryrefslogtreecommitdiff
path: root/admin/sbols
diff options
context:
space:
mode:
Diffstat (limited to 'admin/sbols')
-rwxr-xr-xadmin/sbols12
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