added git version string access in the code
This commit is contained in:
1 parent
e1757c6d30
commit
fd25d0cf2e
6 files changed
+33
-7
No files matched your search
Executable
+14
@@ -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 ';'
|
||||
Reference in new issue
Block a user