From d39fecd95188ca1f51cadefb6dad605a10a9ddb7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 28 Sep 2008 20:05:06 +0200 Subject: Began adding the 'plain' package type --- include/pkglist | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/pkglist b/include/pkglist index 44cf80d..95beb9c 100755 --- a/include/pkglist +++ b/include/pkglist @@ -5,11 +5,14 @@ cd $1 || exit 100 rm .list for i in *(/,@); { - if ([ -d $i/.hg ]) { + if [[ -d $i/.hg ]] { echo -n "$i hg " >> .list hg -R $i log | fgrep changeset | head -n 1 | cut -d ' ' -f 4 >> .list - } elif ([ -d $i/.git ]) { + } elif [[ -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 -n "$i plain " >> .list + ls -ablR $i | md5sum | cut -d ' ' -f 1 >> .list } } -- cgit v1.2.3