From b934c136be8bea66da1efcf2c8792a8608b82637 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 4 May 2014 02:38:51 +0200 Subject: add watch script for qtchess MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- qtchess/watch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 qtchess/watch (limited to 'qtchess') diff --git a/qtchess/watch b/qtchess/watch new file mode 100755 index 0000000..05d5681 --- /dev/null +++ b/qtchess/watch @@ -0,0 +1,20 @@ +#!/bin/sh + +[ -f 'index.html' ] && rm 'index.html' +wget http://qtchess.sourceforge.net/ >/dev/null 2>/dev/null +if [ $? = 0 ]; then + [ -f unfetchable ] && rm unfetchable + grep 'has been released' < index.html | md5sum > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'dooble' + fi + rm index.html +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'dooble (unfetchable)' +fi + -- cgit v1.2.3-70-g09d2