From 55b3728e7e57baf1655ff53283cf9137994d7a4d Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Wed, 1 Mar 2023 03:19:21 +0000 Subject: [PATCH] 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 --- tools/bin/td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bin/td b/tools/bin/td index 69b19cc..6b49ae3 100644 --- a/tools/bin/td +++ b/tools/bin/td @@ -22,7 +22,7 @@ : "${TELODENDRIA_VERSION:=0.2.0}" : "${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}" : "${CFLAGS:=-Wall -Wextra -pedantic -ansi -O3 -pipe}"