BUILD_ID is now the output of "git describe" , falling back to the two digit year...
authorArt Cancro <ajc@citadel.org>
Wed, 20 Jul 2022 21:01:06 +0000 (17:01 -0400)
committerArt Cancro <ajc@citadel.org>
Wed, 20 Jul 2022 21:01:06 +0000 (17:01 -0400)
citadel/configure

index 2bb14259df1fe640da7c69aa7612934c7dd39161..c7b6e94eea4c61f61c03c2e6ec47e500670856f7 100755 (executable)
@@ -112,7 +112,7 @@ cc $tempcc -o $tempfile && {
 ########################################################################
 # FIXME do a real build id here
 ########################################################################
-CFLAGS=${CFLAGS}' -DBUILD_ID=\"'$( date +%y%03j)'\"'
+CFLAGS=${CFLAGS}' -DBUILD_ID=\"'$(git describe 2>/dev/null || date +%y%03j)'\"'
 CFLAGS=${CFLAGS}' -DCTDLDIR=\"'${CTDLDIR}'\"'