diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-07 00:53:46 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-07 00:53:46 +0100 |
commit | 6e2a377abe38d5134a154ea10950c483c5bac147 (patch) | |
tree | 731d74d72ed49cf59001581eca2c310d01621df0 /nafe/watch | |
parent | adopt xcftools (diff) | |
download | aur-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-x | nafe/watch | 20 |
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 + |