blob: 405f5a9db45b14c53a048202f2898444d400e516 (
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
cd /${(j:/:)${(s:/:)0}[1,-4]}
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
}
}
|