diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-07 00:44:03 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-07 00:44:03 +0100 |
commit | 8d4ec9ad0e99bdf7e500c1f45d30e646a9860bfe (patch) | |
tree | 5874c475bb6933586059ce0389d08f994e5756d9 /xcftools/watch | |
parent | update syncterm (diff) | |
download | aur-packages-8d4ec9ad0e99bdf7e500c1f45d30e646a9860bfe.tar.gz aur-packages-8d4ec9ad0e99bdf7e500c1f45d30e646a9860bfe.tar.bz2 aur-packages-8d4ec9ad0e99bdf7e500c1f45d30e646a9860bfe.tar.xz |
adopt xcftools
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-x | xcftools/watch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/xcftools/watch b/xcftools/watch new file mode 100755 index 0000000..09ac1eb --- /dev/null +++ b/xcftools/watch @@ -0,0 +1,20 @@ +#!/bin/sh + +[ -f 'versions' ] && rm 'versions' +wget http://henning.makholm.net/xcftools -O - | grep -Po '<a [^>]*>' | grep 'xcftools' | grep -v asc > versions +if [ $? = 0 ]; then + [ -f unfetchable ] && rm unfetchable + md5sum < versions > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'xcftools' + fi + rm versions +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'xcftools (unfetchable)' +fi + |