summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-24 09:23:06 +0200
committerErich Eckner <git@eckner.net>2016-05-24 09:39:39 +0200
commit2de6e9a94e265637bfdc8adf0cfa94b6e86f1084 (patch)
treedc13fc29893a02b8f4821de6f51c69a2535f1adf
parentceef5051eb9e260c73b661181b965d83b9b11c0d (diff)
downloadarchlinuxewe-2de6e9a94e265637bfdc8adf0cfa94b6e86f1084.tar.xz
checkVersions kann jetzt wirklich(er) openttd-svn
-rwxr-xr-xcheckVersions8
1 files changed, 4 insertions, 4 deletions
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|" \