diff options
-rwxr-xr-x | checkVersions | 31 |
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 |