1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-06-16 06:25:23 +00:00

Changed rolling release automatic version number scheme

This commit is contained in:
Kim Holviala 2018-01-28 20:56:45 +02:00
parent 59a04af5a7
commit c1ea262e35
2 changed files with 3 additions and 5 deletions

View File

@ -9,7 +9,7 @@ NAME = gophernicus
PACKAGE = $(NAME)
BINARY = in.$(NAME)
VERSION = `./version`
CODENAME = Outta Prison
CODENAME = Prison Edition
AUTHOR = Kim Holviala
EMAIL = kimholviala@fastmail.com
STARTED = 2009

View File

@ -4,13 +4,11 @@
## Generate Gophernicus version/build number
##
MAJOR=2
MINOR=99
DEFAULT=99
if which git >/dev/null && test -d .git; then
printf "${MAJOR}."
git log | grep -c "^commit"
else
echo ${MAJOR}.${MINOR}
echo $DEFAULT
fi