summaryrefslogtreecommitdiff
path: root/include/pkglist
blob: 305d248ea51aef8e6918201f5de7fd2e566276e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env zsh
## on the PKG_HOST: list available packages
## used by pkg remote-update

# change into package root directory (first argument)
cd $1

for i in *(-/); {
	if [[ -d $i/.git ]] {
		echo -n "$i git "
		echo ${$(git --git-dir=$i/.git log -n 1)[2]}
	} else {
		echo "$i: Unsupported or no repository" >&2
	}
}