aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorSami Kerola <kerolasa@iki.fi>2012-12-31 16:36:21 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2013-01-02 09:08:11 (GMT)
commitb825874d2e76b97e832df84b0ae3c485637d01e5 (patch)
treebdf4ba10932dc722fb7c7893c18afcc2a6c150f1 /src/Makefile.am
parentbe2c52a146a013ebbfb708073317c337986371ff (diff)
downloadfluxbox-b825874d2e76b97e832df84b0ae3c485637d01e5.zip
fluxbox-b825874d2e76b97e832df84b0ae3c485637d01e5.tar.bz2
do not try to reach $(top_srcdir)/.git directory contents when building a release tar ball
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