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

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

cd "$(xdistdir)" &&
find srcpkgs -name template -print0 |
	xargs -0 grep -l -F "<$EMAIL>" |
	cut -d/ -f2 |
	sort