aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xadmin/sbols21
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