aboutsummaryrefslogtreecommitdiffstats
path: root/spot-on/watch
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-30 21:15:46 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-30 21:15:46 +0200
commit67e6e465ec1f5b58731af319fd309ba7c9e6ee03 (patch)
tree9fd94e7825fa4af99d08e927d964eefa756ccb22 /spot-on/watch
parentfix xtux (diff)
downloadaur-packages-67e6e465ec1f5b58731af319fd309ba7c9e6ee03.tar.gz
aur-packages-67e6e465ec1f5b58731af319fd309ba7c9e6ee03.tar.bz2
aur-packages-67e6e465ec1f5b58731af319fd309ba7c9e6ee03.tar.xz
add spot-on
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'spot-on/watch')
-rwxr-xr-xspot-on/watch20
1 files changed, 20 insertions, 0 deletions
diff --git a/spot-on/watch b/spot-on/watch
new file mode 100755
index 0000000..20cdc6f
--- /dev/null
+++ b/spot-on/watch
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+[ -f 'index.html' ] && rm 'index.html'
+wget http://spot-on.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
+