aboutsummaryrefslogtreecommitdiffstats
path: root/consolekit-git/watch
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-09 11:09:22 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-09 11:09:22 +0200
commit7333857bad62d50cca7a70b759aecb10cf6097d1 (patch)
tree3eadd9f2cd12c77f49a181efb40d7ebb3ec37c6e /consolekit-git/watch
parentadd bluez-libs as makedeps to qtsixa (diff)
downloadaur-packages-7333857bad62d50cca7a70b759aecb10cf6097d1.tar.gz
aur-packages-7333857bad62d50cca7a70b759aecb10cf6097d1.tar.bz2
aur-packages-7333857bad62d50cca7a70b759aecb10cf6097d1.tar.xz
adopt consolekit-git
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-xconsolekit-git/watch19
1 files changed, 19 insertions, 0 deletions
diff --git a/consolekit-git/watch b/consolekit-git/watch
new file mode 100755
index 0000000..d57693b
--- /dev/null
+++ b/consolekit-git/watch
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+wget 'http://cgit.freedesktop.org/ConsoleKit' -O - 2>/dev/null | grep -Po '\.tar.+>ConsoleKit-.+\.tar' | head -n 1 > release
+
+if [ $? = 0 ]; then
+ [ -f unfetchable ] && rm unfetchable
+ md5sum release > new-sum
+ touch sum
+ if [ "$(cat sum)" = "$(cat new-sum)" ]; then
+ rm new-sum
+ else
+ mv new-sum sum
+ echo 'consolekit-git'
+ fi
+elif [ ! -f unfetchable ]; then
+ touch unfetchable
+ echo 'consolekit-git (unfetchable)'
+fi
+