Commit ccd32547 authored by Cyril Brulebois's avatar Cyril Brulebois

xsf-list-udebs: Add help/usage, plus more accurate output.

parent 01d177e5
......@@ -14,8 +14,24 @@ ADDRESS=${ADDRESS:-debian-x@lists.debian.org}
# Take an optional single parameter:
type=$1
case $type in
"-s") type=Source;;
*) type=Package;;
"-h")
echo "Usage: $0 [-s]";
echo
echo "By default, output binary packages. With -s, output source packages."
echo
echo "The following variables can be set:"
echo " MIRROR : $MIRROR"
echo " ARCH : $ARCH"
echo " DIST : $DIST"
echo " ADDRESS : $ADDRESS"
exit 0
;;
"-s")
type=Source
;;
*)
type=Package
;;
esac
# Make sure dctrl-tools is installed:
......@@ -25,5 +41,5 @@ if ! which grep-dctrl >/dev/null 2>&1; then
fi
# Fetch, uncompress, and grep:
echo "Listing $type for packages maintained by $ADDRESS" >&2
echo "ADDRESS=$ADDRESS, ARCH=$ARCH, DIST=$DIST, MIRROR=$MIRROR:" >&2
wget -q http://$MIRROR/debian/dists/$DIST/main/debian-installer/binary-$ARCH/Packages.gz -O - | zcat | grep-dctrl -F Maintainer -s $type $ADDRESS
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment