aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 382d41a..235193d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -77,7 +77,11 @@ defaults.cc: force
77 echo '}'; \ 77 echo '}'; \
78 echo ''; \ 78 echo ''; \
79 echo 'const char* gitrevision() {'; \ 79 echo 'const char* gitrevision() {'; \
80 echo ' return "'`cat $$GITDIR/$$(cat $$GITDIR/HEAD | cut -f 2 -d ' ')`'";';\ 80 if test -r $$GITDIR/HEAD; then \
81 echo ' return "'`cat $$GITDIR/$$(cat $$GITDIR/HEAD | cut -f 2 -d ' ')`'";'; \
82 else \
83 echo ' return "this_is_tar_ball_build";'; \
84 fi; \
81 echo '}' ) > defaults_tmp.cc 85 echo '}' ) > defaults_tmp.cc
82 @if ! cmp defaults_tmp.cc defaults.cc ; then cp defaults_tmp.cc defaults.cc; fi 86 @if ! cmp defaults_tmp.cc defaults.cc ; then cp defaults_tmp.cc defaults.cc; fi
83 @rm defaults_tmp.cc 87 @rm defaults_tmp.cc