do not try to reach $(top_srcdir)/.git directory contents when building a release tar ball
This commit is contained in:
parent
be2c52a146
commit
b825874d2e
1 changed files with 5 additions and 1 deletions
|
@ -77,7 +77,11 @@ defaults.cc: force
|
|||
echo '}'; \
|
||||
echo ''; \
|
||||
echo 'const char* gitrevision() {'; \
|
||||
echo ' return "'`cat $$GITDIR/$$(cat $$GITDIR/HEAD | cut -f 2 -d ' ')`'";';\
|
||||
if test -r $$GITDIR/HEAD; then \
|
||||
echo ' return "'`cat $$GITDIR/$$(cat $$GITDIR/HEAD | cut -f 2 -d ' ')`'";'; \
|
||||
else \
|
||||
echo ' return "this_is_tar_ball_build";'; \
|
||||
fi; \
|
||||
echo '}' ) > defaults_tmp.cc
|
||||
@if ! cmp defaults_tmp.cc defaults.cc ; then cp defaults_tmp.cc defaults.cc; fi
|
||||
@rm defaults_tmp.cc
|
||||
|
|
Loading…
Reference in a new issue