[Pkg-nagios-changes] [pkg-mod-gearman] 09/48: get_version should sort by version
Stig Sandbeck Mathisen
ssm at debian.org
Sun Nov 24 22:38:08 UTC 2013
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository pkg-mod-gearman.
commit abbaece5ed7aff99727a563753384b089677e2ba
Author: Sven Nierlein <Sven.Nierlein at consol.de>
Date: Mon Aug 12 12:36:08 2013 +0200
get_version should sort by version
---
get_version | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/get_version b/get_version
index a5cbdf8..a1d3207 100755
--- a/get_version
+++ b/get_version
@@ -14,7 +14,7 @@ if [ $? -eq 0 ]; then
fi
# if we are not on a exact tag, use the last tag and add the date
-version=`git tag -l | sed -e 's/^v//g' | sort -n | tail -n 1`
+version=`git tag -l | sort -V| sed -e 's/^v//g' | tail -n 1`
if [ $? -eq 0 ]; then
date=`date +%Y%m%d`
major=` echo $version | cut -d . -f 1`
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-mod-gearman
More information about the Pkg-nagios-changes
mailing list