diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-03-05 07:42:05 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-03-05 07:42:05 +0100 |
commit | c5840eae508cec504192d2ff0909af1fc58b5e52 (patch) | |
tree | d5a6ec4c5dd4f99518712e2025a05ae34e43719a /texlive-flashcards/watch | |
parent | adopt emacs-find-recursive (diff) | |
download | aur-packages-c5840eae508cec504192d2ff0909af1fc58b5e52.tar.gz aur-packages-c5840eae508cec504192d2ff0909af1fc58b5e52.tar.bz2 aur-packages-c5840eae508cec504192d2ff0909af1fc58b5e52.tar.xz |
adopt texlive-flashcards
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'texlive-flashcards/watch')
-rwxr-xr-x | texlive-flashcards/watch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/texlive-flashcards/watch b/texlive-flashcards/watch new file mode 100755 index 0000000..cd655ff --- /dev/null +++ b/texlive-flashcards/watch @@ -0,0 +1,21 @@ +#!/bin/sh + +[ -f flashcards ] && rm flashcards + +wget 'http://ctan.org/pkg/flashcards' -O flashcards >/dev/null 2>/dev/null + +if [ $? = 0 ]; then + [ -f unfetchable ] && rm unfetchable + grep 'Ver­sion' < flashcards | md5sum > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'texlive-flashcards' + fi +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'texlive-flashcards (unfetchable)' +fi + |