aboutsummaryrefslogtreecommitdiffstats
path: root/loki-render/watch
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-04-13 02:41:34 +0200
committerMattias Andrée <maandree@operamail.com>2013-04-13 02:41:34 +0200
commitdd4aa629d8b6cff48f3a6fbad1eecb02b812af25 (patch)
treedf3d281bc53ab642323ef368c6a8a9f96b03f088 /loki-render/watch
parentso far... (diff)
downloadaur-packages-dd4aa629d8b6cff48f3a6fbad1eecb02b812af25.tar.gz
aur-packages-dd4aa629d8b6cff48f3a6fbad1eecb02b812af25.tar.bz2
aur-packages-dd4aa629d8b6cff48f3a6fbad1eecb02b812af25.tar.xz
adopt loki-render
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-xloki-render/watch21
1 files changed, 21 insertions, 0 deletions
diff --git a/loki-render/watch b/loki-render/watch
new file mode 100755
index 0000000..d7dd52c
--- /dev/null
+++ b/loki-render/watch
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+[ -f release ] && rm release
+
+wget 'http://loki-render.berlios.de/index.php/download' -O - 2>/dev/null | grep lokiRender > release
+
+if [ $? = 0 ]; then
+ [ -f unfetchable ] && rm unfetchable
+ md5sum release > new-sum
+ touch sum
+ if [ "$(cat sum)" = "$(cat new-sum)" ]; then
+ rm new-sum
+ else
+ mv new-sum sum
+ echo 'loki-render'
+ fi
+elif [ ! -f unfetchable ]; then
+ touch unfetchable
+ echo 'loki-render (unfetchable)'
+fi
+