aboutsummaryrefslogtreecommitdiffstats
path: root/xcftools
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-07-08 18:02:02 +0200
committerMattias Andrée <maandree@operamail.com>2015-07-08 18:02:02 +0200
commit05f7728aa3f6a86bc9529530b13fcf86a6ae90be (patch)
treec83cc9e349da8b1edc3f5538d71b24abb9b204db /xcftools
parentupdate dooble and spot-on (diff)
downloadaur-packages-05f7728aa3f6a86bc9529530b13fcf86a6ae90be.tar.gz
aur-packages-05f7728aa3f6a86bc9529530b13fcf86a6ae90be.tar.bz2
aur-packages-05f7728aa3f6a86bc9529530b13fcf86a6ae90be.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
l---------xcftools/upload1
-rwxr-xr-xxcftools/watch20
2 files changed, 21 insertions, 0 deletions
diff --git a/xcftools/upload b/xcftools/upload
new file mode 120000
index 0000000..1e7a8be
--- /dev/null
+++ b/xcftools/upload
@@ -0,0 +1 @@
+../upload \ No newline at end of file
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
+