blob: cd655ff8f17ce94450d4ee8a23886accca786825 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
|