Skip to content

Commit 546c7a7

Browse files
committed
tools/release.sh; pipe git tag through sort -V
so the list is sorted by version, with the latest appearing last (so tail -1 finds it)
1 parent d1b145c commit 546c7a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
# Bill Kendrick <[email protected]>
1010
# http://www.newbreedsoftware.com/firefight/
1111

12-
# Last updated 2023-09-25
12+
# Last updated 2025-01-20
1313

1414
# Confirm that we've tagged with the same version
1515
# number we're bulding it as. (Makefile "VERSION"
1616
# matches most recent "git tag".) Use '-f' to force.
1717

1818
MAKE_VERSION=`grep "^VERSION=" Makefile | cut -d '=' -f 2`
1919
README_VERSION=`grep "^### Version: " README.md | cut -d ' ' -f 3`
20-
TAG=`git tag | tail -1 | sed -e "s/[a-z]/\U&/g"`
20+
TAG=`git tag | tail -1 | sort -V | sed -e "s/[a-z]/\U&/g"`
2121
echo "Version in Makefile: $MAKE_VERSION"
2222
echo "Version in README.md: $README_VERSION"
2323
echo "Latest git repo tag: $TAG"

0 commit comments

Comments
 (0)