From 2de6e9a94e265637bfdc8adf0cfa94b6e86f1084 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 24 May 2016 09:23:06 +0200 Subject: checkVersions kann jetzt wirklich(er) openttd-svn --- checkVersions | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'checkVersions') diff --git a/checkVersions b/checkVersions index d8ab59824..088aab160 100755 --- a/checkVersions +++ b/checkVersions @@ -283,14 +283,14 @@ then grep "^${quNam}-${mainVer}\.\(.*\)${quEnd}\$" | \ sed "s|^${quNam}-${mainVer}\.\(.*\)${quEnd}\$|\1|" \ ) - elif [ "${pkgname}" == "openttd-svn" ] + elif echo "${src}" | \ + grep -q "svn://svn\.openttd\.org" then remVer=$( \ - eval $(grep "^\s*svn " $1/PKGBUILD | \ - sed "s|export|log|; s|\s*trunk\$||") | \ + svn log "${src%#*}" | \ grep -v "^-.* WebTranslator " | \ grep -v "^-.* Eints:" | \ - grep "^-[^-]" -B10 -m1 | \ + grep -B10 -m1 -- "^-[^-]" | \ grep "^r" | \ tail -n1 | \ sed "s|^r\([[:digit:]]\+\)\s.*\$|\1|" \ -- cgit v1.2.3-70-g09d2