aboutsummaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-08-29 20:29:22 -0400
committerB. Watson <urchlay@slackware.uk>2026-08-29 20:29:22 -0400
commit28a84449e0f3ad31e39795e6a4433e33da1ad0fc (patch)
tree7bdbfc5c8e4d9fdf5782ec88d4da987531cb50ef /admin
parent55504fefce3078ac683b85508fa8af9e4d1b2059 (diff)
downloadsbostuff-28a84449e0f3ad31e39795e6a4433e33da1ad0fc.tar.gz
getmaintbuilds, getmaintdependees: add --help.
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/getmaintbuilds18
-rwxr-xr-xadmin/getmaintdependees36
2 files changed, 36 insertions, 18 deletions
diff --git a/admin/getmaintbuilds b/admin/getmaintbuilds
index ea665c9..7fd8366 100755
--- a/admin/getmaintbuilds
+++ b/admin/getmaintbuilds
@@ -1,5 +1,23 @@
#!/bin/sh
+SELF="$( basename $0 )"
+
+if [ "$1" = "" -o "$1" = "--help" ]; then
+ cat <<EOF
+$SELF - list SlackBuilds by maintainer.
+
+Usage: $SELF <maintainer>
+
+<maintainer> does not need to be quoted, if it contains spaces (although
+it can be).
+
+If <maintainer> contains an @, it's assumed to be an email address,
+otherwise it's treated as name. Watch out for obfuscated email
+addresses!
+EOF
+ exit 0
+fi
+
source ~/sbostuff/sbostuff.sh
cd $SBO_GITROOT || exit 1
if echo "$*" | grep -q '@'; then
diff --git a/admin/getmaintdependees b/admin/getmaintdependees
index 3fc31e1..5673f85 100755
--- a/admin/getmaintdependees
+++ b/admin/getmaintdependees
@@ -1,30 +1,30 @@
#!/bin/sh
-# dependees maintained by the same maintainer are listed without
-# name/email. only "external" dependees (ones maintained by someone else)
-# have the name/email displayed.
+SELF="$( basename $0 )"
EES=ees
-if [ "$( basename $0 )" = "getmaintreqs" ]; then
+if [ "$SELF" = "getmaintreqs" ]; then
REV=-r
EES=encies
fi
-source ~/sbostuff/sbostuff.sh
+if [ "$1" = "" -o "$1" = "--help" ]; then
+ cat <<EOF
+$SELF - get SlackBuild depend$EES by maintainer.
+
+Usage: $SELF <maintainer>
+
+<maintainer> must be a maintainer's name (not email address). It does
+not need to be quoted, if it contains spaces (although it can be).
+EOF
+ exit 0
+fi
+
+# dependees maintained by the same maintainer are listed without
+# name/email. only "external" dependees (ones maintained by someone else)
+# have the name/email displayed.
-##if [ "$1" = "-b" ]; then
-## shift
-## builds="$1"
-## cdsb $builds && maint="$( source ./*.info && echo $MAINTAINER )"
-## shift
-## if [ "$*" ]; then
-## echo "$( basename $0 ): -b only allows one build" 1>&2
-## exit 1
-## fi
-##else
-## maint="$*"
-## builds="$( getmaintbuilds "$@" )"
-##fi
+source ~/sbostuff/sbostuff.sh
maint="$*"
builds="$( getmaintbuilds "$@" )"