From 5262abbe07430721da96ef1b1a19884b03725478 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 17 Nov 2012 07:42:26 +0100 Subject: auto update watch for javagnutar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- javagnutar/watch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 javagnutar/watch (limited to 'javagnutar') diff --git a/javagnutar/watch b/javagnutar/watch new file mode 100755 index 0000000..1a82980 --- /dev/null +++ b/javagnutar/watch @@ -0,0 +1,17 @@ +#!/bin/sh + +wget http://code.google.com/p/javagnutar/ >/dev/null 2>/dev/null +if [ $? = 0 ]; then + grep \\.zip < index.html | md5sum > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'javagnutar' + fi + rm index.html +else + echo 'javagnutar (unfetchable)' +fi + -- cgit v1.2.3-70-g09d2