Browse Source

create_tarball: Sort tags as version numbers instead of as text

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head r14.0.0
Slávek Banko 8 years ago
parent
commit
45dd8325b7
  1. 2
      create_tarball

2
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`

Loading…
Cancel
Save