added git version string access in the code
This commit is contained in:
14
get_git_version
Executable file
14
get_git_version
Executable 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 ';'
|
||||
Reference in New Issue
Block a user