aboutsummaryrefslogtreecommitdiffstats
path: root/nafe/watch
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-07 00:53:46 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-07 00:53:46 +0100
commit6e2a377abe38d5134a154ea10950c483c5bac147 (patch)
tree731d74d72ed49cf59001581eca2c310d01621df0 /nafe/watch
parentadopt xcftools (diff)
downloadaur-packages-6e2a377abe38d5134a154ea10950c483c5bac147.tar.gz
aur-packages-6e2a377abe38d5134a154ea10950c483c5bac147.tar.bz2
aur-packages-6e2a377abe38d5134a154ea10950c483c5bac147.tar.xz
adopt nafe
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-xnafe/watch20
1 files changed, 20 insertions, 0 deletions
diff --git a/nafe/watch b/nafe/watch
new file mode 100755
index 0000000..776dfd1
--- /dev/null
+++ b/nafe/watch
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+[ -f 'version' ] && rm 'version'
+wget http://sourceforge.net/projects/nafe/files/nafe -O - | grep -o 'Download nafe-[^)]*B)' > version
+if [ $? = 0 ]; then
+ [ -f unfetchable ] && rm unfetchable
+ md5sum < version > new-sum
+ touch sum
+ if [ "$(cat sum)" = "$(cat new-sum)" ]; then
+ rm new-sum
+ else
+ mv new-sum sum
+ echo 'nafe'
+ fi
+ rm version
+elif [ ! -f unfetchable ]; then
+ touch unfetchable
+ echo 'nafe (unfetchable)'
+fi
+