From a3238f0c34a6ac9673201fa862d7cbed3a9f70dd Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 13 Jul 2009 09:35:00 +0200 Subject: Support more than one package root IMPORTANT: You'll need to update your pkglist script --- include/pkglist | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include') 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 } -- cgit v1.2.3