diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-03-05 09:54:29 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-03-05 09:54:29 +0100 |
commit | f269adfb93295f3e14678a6bb93a5c19263e4884 (patch) | |
tree | b2badc305dba5b88135f15b1b283a13c7195996f /paredit/watch | |
parent | update gitignore (diff) | |
download | aur-packages-f269adfb93295f3e14678a6bb93a5c19263e4884.tar.gz aur-packages-f269adfb93295f3e14678a6bb93a5c19263e4884.tar.bz2 aur-packages-f269adfb93295f3e14678a6bb93a5c19263e4884.tar.xz |
adopt paredit
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-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 + |