diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2014-12-09 21:46:39 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-12-16 22:12:39 +0100 |
commit | 337d014ddd46c8d1e0305fdedb62952e74106854 (patch) | |
tree | d5e6911fe072ce3da35c4c0824d7bc2c6fc64e58 | |
parent | bf39f95043b8707415d43582b99e61a205de6ae6 (diff) | |
download | scripts-337d014ddd46c8d1e0305fdedb62952e74106854.tar.gz scripts-337d014ddd46c8d1e0305fdedb62952e74106854.zip |
create_tarball: Sort tags as version numbers instead of as text
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 45dd8325b7db7af5821a69ed98e072a9f96d8337)
-rwxr-xr-x | create_tarball | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/create_tarball b/create_tarball index a1f89eb..b59e8c1 100755 --- a/create_tarball +++ b/create_tarball @@ -85,7 +85,7 @@ fi MODULE=${SUBROOT#$TDEROOT/main/} # Calculate version -tag=`git tag | sort -r | while read t; do \ +tag=`git tag | sort -t. -k 1,1nr -k 2,2nr -k 3,3nr -k 4,4nr | while read t; do \ git branch --contains $t | cut -c 3- | grep -x "$branch" >/dev/null && \ echo "$t..HEAD" && break; done` |