summaryrefslogtreecommitdiff
path: root/manualPorts/lastVersion.sh
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-14 22:52:42 +0100
committerErich Eckner <git@eckner.net>2020-01-14 22:52:42 +0100
commitc4bd8c42eeb6b8a79446ab3b629d56f672368ac8 (patch)
tree3eb79662d9dc8fce76cffa76a80aa1e03b454279 /manualPorts/lastVersion.sh
parent763b17a2cb0b46abd547356f4221280c7983d259 (diff)
downloadcrux-ports-c4bd8c42eeb6b8a79446ab3b629d56f672368ac8.tar.xz
lastVersion.sh: ignore "svn" as version
Diffstat (limited to 'manualPorts/lastVersion.sh')
-rwxr-xr-xmanualPorts/lastVersion.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/manualPorts/lastVersion.sh b/manualPorts/lastVersion.sh
index b9d1754..2be942f 100755
--- a/manualPorts/lastVersion.sh
+++ b/manualPorts/lastVersion.sh
@@ -45,8 +45,19 @@ then
echo "${base}/$1/lastVersion.sh"' gibt keine Version zurück!'
fi
fi
-lastVersion="$(grep "\(^\|\s\)version=" /usr/{src/ports/manualPorts,ports/*}/$1/Pkgfile | cut -d = -f 2 | sort -V | tail -n1)"
-myVersion="$(grep "\(^\|\s\)version=" /usr/src/ports/manualPorts/$1/Pkgfile | cut -d = -f 2 | sort -V | tail -n1)"
+lastVersion=$(
+ grep "\(^\|\s\)version=" /usr/{src/ports/manualPorts,ports/*}/$1/Pkgfile \
+ | cut -d = -f 2 \
+ | grep -vxF svn \
+ | sort -V \
+ | tail -n1
+)
+myVersion=$(
+ grep "\(^\|\s\)version=" /usr/src/ports/manualPorts/$1/Pkgfile \
+ | cut -d = -f 2 \
+ | sort -V \
+ | tail -n1
+)
if [ -n "${newestVersion}" ] && \
[ ! "${newestVersion}" == "${myVersion}" ]