added git version string access in the code

This commit is contained in:
2023-05-14 16:58:55 +02:00
parent e1757c6d30
commit fd25d0cf2e
6 changed files with 33 additions and 7 deletions

14
get_git_version Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/csh -f
cat <<!
#include "version.h"
const char LA::version[] =
!
echo -n '"'
echo -n `git describe`
echo -n ' HEAD commit = '
set head=`git rev-parse HEAD`
echo -n $head
echo -n ' dated '
echo -n `git show -s --format=%ci $head`
echo -n '"'
echo ';'