blob: d57693bd7544118488525429825d711d2a8a529f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
wget 'http://cgit.freedesktop.org/ConsoleKit' -O - 2>/dev/null | grep -Po '\.tar.+>ConsoleKit-.+\.tar' | head -n 1 > release
if [ $? = 0 ]; then
[ -f unfetchable ] && rm unfetchable
md5sum release > new-sum
touch sum
if [ "$(cat sum)" = "$(cat new-sum)" ]; then
rm new-sum
else
mv new-sum sum
echo 'consolekit-git'
fi
elif [ ! -f unfetchable ]; then
touch unfetchable
echo 'consolekit-git (unfetchable)'
fi
|