summaryrefslogtreecommitdiff
path: root/include/pkglist
blob: 2af4d4a7e973c0ea8a075b9ceeed8f2ab9f99057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env zsh

cd $1 || exit 100

rm -f .list

for i in *(/,@); {
	if [[ -d $i/.git ]] {
		echo -n "$i git " >> .list
		git --git-dir=$i/.git log | fgrep commit | head -n 1 | cut -d ' ' -f 2 >> .list
	} else {
		echo "Unsupported package: $i" >&2
	}
}