improved get_git_version

This commit is contained in:
Jiri Pittner 2023-05-14 21:00:45 +02:00
parent fd25d0cf2e
commit feab44b34a
2 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,7 @@ AM_LDFLAGS += $(CUDALIBS)
tX_LDFLAGS = $(AM_LDFLAGS) -lX11 -lm
version.cc:
version.cc: get_git_version
./get_git_version >>version.cc
include $(top_srcdir)/aminclude.am

View File

@ -10,5 +10,6 @@ set head=`git rev-parse HEAD`
echo -n $head
echo -n ' dated '
echo -n `git show -s --format=%ci $head`
echo -n ' compiled on ' `date` 'at' `hostname` 'by' `whoami`
echo -n '"'
echo ';'