feed the right git revision used to build fluxbox into defaults.hh
Mathias Gumz akira at fluxbox dot org
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/Makefile.am
→
src/Makefile.am
@@ -59,7 +59,7 @@ echo ' return PROGRAM_PREFIX + name + PROGRAM_SUFFIX;'; \
echo '}'; \ echo ''; \ echo 'const char* svnversion(void) {'; \ - echo ' return "'`cat ../.git/refs/heads/master`'";';\ + echo ' return "'`cat ../.git/$$(cat ../.git/HEAD | cut -f 2 -d ' ')`'";';\ echo '}' ) > defaults_tmp.cc @if ! cmp defaults_tmp.cc defaults.cc ; then cp defaults_tmp.cc defaults.cc; fi @rm defaults_tmp.cc