diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-13 09:35:00 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-13 09:52:31 +0200 |
commit | a3238f0c34a6ac9673201fa862d7cbed3a9f70dd (patch) | |
tree | 05f28bf3cf3bc0e1d1126169b11ad3b5ad041427 /include | |
parent | 3834853f5f312086daf6894b2ccfeaac24ab0bac (diff) |
Support more than one package root
IMPORTANT: You'll need to update your pkglist script
Diffstat (limited to 'include')
-rwxr-xr-x | include/pkglist | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/pkglist b/include/pkglist index 660036b..2182f4b 100755 --- a/include/pkglist +++ b/include/pkglist @@ -8,16 +8,21 @@ if [[ ! -d $1 ]] { exit 1 } +setopt err_exit + # change into package root directory (first argument) cd $1 +shift for i in *(-/); { if [[ -d $i/.git ]] { echo -n "$i git " - echo ${$(git --git-dir=$i/.git log -n 1)[2]} + echo -n ${$(git --git-dir=$i/.git log -n 1)[2]} + echo " $*" } elif [[ -d $i/objects && -d $i/refs ]] { echo -n "$i git " - echo ${$(git --git-dir=$i log -n 1)[2]} + echo -n ${$(git --git-dir=$i log -n 1)[2]} + echo " $*" } else { echo "$i: Unsupported or no repository" >&2 } |