diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-04-11 02:14:50 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-04-11 02:14:50 +0200 |
commit | a363db18ecf4877c8fb7713961debd5741ebc7d7 (patch) | |
tree | 73eb2b458f1cae4b2fe4f2b95fe27fc6f1665480 /syncterm/watch | |
parent | A working version of blender-blam (diff) | |
download | aur-packages-a363db18ecf4877c8fb7713961debd5741ebc7d7.tar.gz aur-packages-a363db18ecf4877c8fb7713961debd5741ebc7d7.tar.bz2 aur-packages-a363db18ecf4877c8fb7713961debd5741ebc7d7.tar.xz |
m + syncterm
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'syncterm/watch')
-rwxr-xr-x | syncterm/watch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/syncterm/watch b/syncterm/watch new file mode 100755 index 0000000..c427d98 --- /dev/null +++ b/syncterm/watch @@ -0,0 +1,21 @@ +#!/bin/sh + +[ -f release ] && rm release + +wget http://syncterm.bbsdev.net -O - 2>/dev/null | grep "syncterm-src.tgz" > 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 'syncterm' + fi +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'syncterm (unfetchable)' +fi + |