summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkg3
-rwxr-xr-xinclude/pkglist7
2 files changed, 8 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index b23c346..e777be6 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -154,6 +154,9 @@ vcs_to_list () {
} elif [[ -d $1/.git ]] {
echo -n "$1 git "
git --git-dir=$1/.git log | fgrep commit | head -n 1 | cut -d ' ' -f 2
+ } else {
+ echo -n "$i plain " >> .list
+ ls -ablR $i | md5sum | cut -d ' ' -f 1 >> .list
}
}
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
}
}