about summary refs log tree commit diff
path: root/xmypkgs
blob: 380793fcda7daf4df407cb662a57206a309ac353 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# xmypkgs [EMAIL] - list all pkgs maintained by you (or EMAIL)

XDISTDIR="$(xdistdir)" || exit 1
EMAIL=${1-$(git -C "$XDISTDIR" config user.email)}
if [ -z "$EMAIL" ]; then
	echo "who are you? tell your email address." >&2
	exit 1
fi

git -C "$XDISTDIR" grep -l -F "<$EMAIL>" -- 'srcpkgs/*/template' |
	cut -d/ -f2 |
	sort