From 7333857bad62d50cca7a70b759aecb10cf6097d1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 9 Jun 2013 11:09:22 +0200 Subject: adopt consolekit-git MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- consolekit-git/watch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 consolekit-git/watch (limited to 'consolekit-git/watch') 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 + -- cgit v1.2.3-70-g09d2