diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-28 20:05:06 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-28 20:07:31 +0200 |
commit | d39fecd95188ca1f51cadefb6dad605a10a9ddb7 (patch) | |
tree | c52213ae42a1d151226b1874b9878c681022780c /include/pkglist | |
parent | 77723bb0fab0ff222127cc4f77e19e648f7c8072 (diff) |
Began adding the 'plain' package type
Diffstat (limited to 'include/pkglist')
-rwxr-xr-x | include/pkglist | 7 |
1 files changed, 5 insertions, 2 deletions
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 } } |