summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-26 09:48:35 +0200
committerErich Eckner <git@eckner.net>2016-05-26 09:48:35 +0200
commit43da469d5ba26f050f51508a90d59946c46337ea (patch)
tree4e05fc7aad4fd0a58288e0f9e5c10c6714fb17d5
parenta5c25cc954d2bd3a854248f41cbffdac1737944a (diff)
downloadarchlinuxewe-43da469d5ba26f050f51508a90d59946c46337ea.tar.xz
checkVersions kann jetzt auch dropbox
-rwxr-xr-xcheckVersions31
1 files changed, 21 insertions, 10 deletions
diff --git a/checkVersions b/checkVersions
index 0d2170692..bce6030f0 100755
--- a/checkVersions
+++ b/checkVersions
@@ -92,25 +92,36 @@ then
src="${src#*::}"
- if [ "${pkgname}" == "pgplot-for-ifeffit" ]
- then
- remVer="$(
- curl -o - "ftp://ftp.astro.caltech.edu/pub/pgplot/" 2> /dev/null | \
- grep "\spgplot[0-9.]\+\.tar\.gz -> \S\+\$" | \
- sed "s|^.*\spgplot\([0-9.]\+\)\.tar\.gz -> \S\+\$|\1|" | \
- sort -V | \
- tail -n1
- )"
- elif [ "${pkgname}" == "adduser" ]
+ if [ "${pkgname}" == "adduser" ]
then
remVer="$(
wget -O - "${source[0]}" 2> /dev/null | \
grep '^# Version: ' | \
sed 's|^# Version: \+||'
)"
+ elif [ "${pkgname}" == "dropbox" ]
+ then
+ remVer="$(
+ curl "https://www.dropbox.com/release_notes" 2> /dev/null | \
+ tr '\n/"' ' \n\n' | \
+ grep -- '-Stable-Build-[0-9-]\+$' | \
+ sed 's|^.*-Stable-Build-\([0-9-]\+\)$|\1|' | \
+ tr '-' '.' | \
+ sort -V | \
+ tail -n1
+ )"
elif [ "${pkgname}" == "g95" ]
then
remVer='0.94'
+ elif [ "${pkgname}" == "pgplot-for-ifeffit" ]
+ then
+ remVer="$(
+ curl -o - "ftp://ftp.astro.caltech.edu/pub/pgplot/" 2> /dev/null | \
+ grep "\spgplot[0-9.]\+\.tar\.gz -> \S\+\$" | \
+ sed "s|^.*\spgplot\([0-9.]\+\)\.tar\.gz -> \S\+\$|\1|" | \
+ sort -V | \
+ tail -n1
+ )"
elif echo "${src}" | \
grep -q "//www\.mpich\.org/"
then