summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-25 15:34:28 +0200
committerErich Eckner <git@eckner.net>2016-05-25 17:03:04 +0200
commitfb46cb2d003981bc62fb6999b16566abfcafe4ec (patch)
treeae5d461fb22c57e8103c1db27110319288786eb1 /checkVersions
parentc36a49319931f3bcc5634e490114ba7bc56ecbb6 (diff)
downloadarchlinuxewe-fb46cb2d003981bc62fb6999b16566abfcafe4ec.tar.xz
checkVersions versteht nun noch mehr Quellen
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions53
1 files changed, 46 insertions, 7 deletions
diff --git a/checkVersions b/checkVersions
index b71395d99..0d2170692 100755
--- a/checkVersions
+++ b/checkVersions
@@ -87,7 +87,7 @@ then
srcKnown=false
- for src in "${source[@]}"
+ for src in "${source[@]}" "${source_i686[@]}" "${source_x86_64[@]}"
do
src="${src#*::}"
@@ -101,6 +101,43 @@ then
sort -V | \
tail -n1
)"
+ elif [ "${pkgname}" == "adduser" ]
+ then
+ remVer="$(
+ wget -O - "${source[0]}" 2> /dev/null | \
+ grep '^# Version: ' | \
+ sed 's|^# Version: \+||'
+ )"
+ elif [ "${pkgname}" == "g95" ]
+ then
+ remVer='0.94'
+ elif echo "${src}" | \
+ grep -q "//www\.mpich\.org/"
+ then
+ quVer="${src%/*/*}/"
+ aVers="$(
+ curl "${quVer}" 2> /dev/null | \
+ tr '"' '\n' | \
+ grep '^[0-9.]\+/$' | \
+ sed 's|/$||'
+ )"
+ if [ ! "${pkgname}" == "mpich" ]
+ then
+ aVers="$(
+ (
+ echo "${aVers}"
+ echo "${pkgname#mpich} %%%SCHNIPP%%%"
+ ) |
+ sort -V | \
+ sed '/%%%SCHNIPP%%%/q' | \
+ grep -v '%%%SCHNIPP%%%'
+ )"
+ fi
+ remVer="$(
+ echo "${aVers}" | \
+ sort -V | \
+ tail -n1
+ )"
elif echo "${src}" | \
grep -q 'git://anonscm\.debian\.org/'
then
@@ -250,17 +287,19 @@ then
tail -n1 \
)
elif echo "${src}" | \
- grep -q "//downloads\.sourceforge\.net/sourceforge/"
+ grep -q "//downloads\.sourceforge\.net/"
then
quVer=$( \
echo "${src}" | \
- sed "s|//downloads\.sourceforge\.net/sourceforge/\([^/]*\)/[^/]*\$|//sourceforge.net/projects/\1/files/\1/|" | \
+ sed 's|/sourceforge/|/|' | \
+ sed "s|//downloads\.sourceforge\.net/\([^/]*\)/[^/]*\$|//sourceforge.net/projects/\1/files/\1/|" | \
sed "s|^http:|https:|"
)
remVer=$( \
- curl -o - "${quVer}" 2> /dev/null | \
+ curl "${quVer}" 2> /dev/null | \
tr "\"" "\n" | \
- grep "^${quVer#*sourceforge.net}[0-9.-]" | \
+ grep "^${quVer#*sourceforge.net}\(${pkgname}\(-\|%20\)\)\?[0-9.-]" | \
+ sed "s@/${pkgname}\(-\|%20\)@/@" | \
sed "s|^${quVer#*sourceforge.net}\([0-9.-]\+\).*\$|\1|" | \
sed "s|-\$||" | \
sort -V | \
@@ -296,7 +335,7 @@ then
sed "s|^r\([[:digit:]]\+\)\s.*\$|\1|" \
)
elif echo "${src}" | \
- grep -q "http://\(bindfs\|www\.iozone\)\.org/"
+ grep -q "http://\(\(bindfs\|www\.iozone\)\.org\|www\.cybernoia\.de\|isl\.gforge\.inria\.fr\)/"
then
quVer="${src%/*}/"
remVer="$( \
@@ -316,7 +355,7 @@ then
if ! ${srcKnown}
then
- echo "$1: Unknown src: '${source[@]}'"
+ echo "$1: Unknown src: '${source[@]}' '${source_i686[@]}' '${source_x86_64[@]}'"
exit 1
fi