diff options
Diffstat (limited to 'paredit/watch')
-rwxr-xr-x | paredit/watch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/paredit/watch b/paredit/watch new file mode 100755 index 0000000..2cc78e0 --- /dev/null +++ b/paredit/watch @@ -0,0 +1,21 @@ +#!/bin/sh + +[ -f paredit.release ] && rm paredit.release + +wget 'http://mumble.net/~campbell/emacs/paredit.release' -O paredit.release >/dev/null 2>/dev/null + +if [ $? = 0 ]; then + [ -f unfetchable ] && rm unfetchable + md5sum paredit.release > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'paredit' + fi +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'paredit (unfetchable)' +fi + |