Bake the platform name into the version number.

This is helpful as we're porting to different operating systems. I guess
it just makes the porting effort more satisfying. Seeing this header
makes me happy:

Server: Telodendria/0.2.0-Haiku
This commit is contained in:
Jordan Bancino 2023-03-01 03:19:21 +00:00
parent 2b77681763
commit 55b3728e7e

View file

@ -22,7 +22,7 @@
: "${TELODENDRIA_VERSION:=0.2.0}" : "${TELODENDRIA_VERSION:=0.2.0}"
: "${CVS_TAG:=Telodendria-$(echo $TELODENDRIA_VERSION | sed 's/\./_/g')}" : "${CVS_TAG:=Telodendria-$(echo $TELODENDRIA_VERSION | sed 's/\./_/g')}"
: "${DEFINES:=-D_DEFAULT_SOURCE -DTELODENDRIA_VERSION=\"$TELODENDRIA_VERSION\"}" : "${DEFINES:=-D_DEFAULT_SOURCE -DTELODENDRIA_VERSION=\"${TELODENDRIA_VERSION}-$(uname)\"}"
: "${CC:=cc}" : "${CC:=cc}"
: "${CFLAGS:=-Wall -Wextra -pedantic -ansi -O3 -pipe}" : "${CFLAGS:=-Wall -Wextra -pedantic -ansi -O3 -pipe}"