From 8d4ec9ad0e99bdf7e500c1f45d30e646a9860bfe Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 7 Feb 2014 00:44:03 +0100 Subject: adopt xcftools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- xcftools/watch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 xcftools/watch (limited to 'xcftools/watch') diff --git a/xcftools/watch b/xcftools/watch new file mode 100755 index 0000000..09ac1eb --- /dev/null +++ b/xcftools/watch @@ -0,0 +1,20 @@ +#!/bin/sh + +[ -f 'versions' ] && rm 'versions' +wget http://henning.makholm.net/xcftools -O - | grep -Po ']*>' | grep 'xcftools' | grep -v asc > versions +if [ $? = 0 ]; then + [ -f unfetchable ] && rm unfetchable + md5sum < versions > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'xcftools' + fi + rm versions +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'xcftools (unfetchable)' +fi + -- cgit v1.2.3-70-g09d2