diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-09 11:09:22 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-09 11:09:22 +0200 |
commit | 7333857bad62d50cca7a70b759aecb10cf6097d1 (patch) | |
tree | 3eadd9f2cd12c77f49a181efb40d7ebb3ec37c6e /consolekit-git/watch | |
parent | add bluez-libs as makedeps to qtsixa (diff) | |
download | aur-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 'consolekit-git/watch')
-rwxr-xr-x | consolekit-git/watch | 19 |
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 + |