diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-04 02:38:51 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-04 02:38:51 +0200 |
commit | b934c136be8bea66da1efcf2c8792a8608b82637 (patch) | |
tree | 59f12c9155f11f412ab7d644fc26099bde1a69bd /qtchess/watch | |
parent | add qtchess (diff) | |
download | aur-packages-b934c136be8bea66da1efcf2c8792a8608b82637.tar.gz aur-packages-b934c136be8bea66da1efcf2c8792a8608b82637.tar.bz2 aur-packages-b934c136be8bea66da1efcf2c8792a8608b82637.tar.xz |
add watch script for qtchess
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-x | qtchess/watch | 20 |
1 files changed, 20 insertions, 0 deletions
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 + |