summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-27 20:26:38 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-27 20:26:38 +0200
commitb0105294a4f8c5b6ba957a39aded22f082a46895 (patch)
tree316a4ef3ff5462819a764482e090b7025e51442e /include
parente5890fd4a4966a6b248d331edd7cfb2f79d9ca63 (diff)
/bin/pkg: Also create local list on update
Diffstat (limited to 'include')
-rwxr-xr-xinclude/pkglist15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/pkglist b/include/pkglist
new file mode 100755
index 0000000..4c39365
--- /dev/null
+++ b/include/pkglist
@@ -0,0 +1,15 @@
+#!/usr/bin/env zsh
+
+cd $1 || exit 100
+
+rm .list
+
+for i in *(/); {
+ 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 ]) {
+ echo -n "$i git " >> .list
+ git --git-dir=$i/.git log | fgrep commit | head -n 1 | cut -d ' ' -f 2 >> .list
+ }
+}