blob: 46f0d56ca7a4c7fbb4d0eb5c3ca1a89b704cf6c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/env bash
# ./check4u -- check for updates of a software package
twelf_latest() {
local WEBPAGE='http://twelf.org/wiki/Download'
local DOWNLOAD_LINK=`curl --silent $WEBPAGE |
grep -oP --color=NEVER '"http://twelf\.org/releases/twelf-src-[\w.]+\.tar\.gz"'`
LATEST=${DOWNLOAD_LINK#*/twelf-src-}
LATEST=${LATEST%.tar.gz\"}
}
twelf_current() {
source PKGBUILD &&
CURRENT="$pkgver"
}
twelf_latest && twelf_current
if [[ "$LATEST" != "$CURRENT" ]]; then
echo -e "Latest release : $LATEST"
echo -e "Currently on AUR : $CURRENT"
exit 1
fi
|