From: Rafaël Carré Date: Wed, 12 Mar 2008 23:13:49 +0000 (+0100) Subject: Fix git commit generation X-Git-Tag: 0.9.0-test0~2136 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e6b20aa94016e228096229844d49d3a28ebf947d;p=vlc Fix git commit generation Not everybody builds VLC from the source tree besides that the shell code was wrong : the return value of a pipe is the one of the LAST command in the pipe. --- diff --git a/src/Makefile.am b/src/Makefile.am index 8c10bea4f4..983e1fab96 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -380,7 +380,7 @@ SOURCES_libvlc_control = \ misc/revision.c: rm -f $@ $@.tmp echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@.tmp - REVISION="$$(LANG=C git-show-ref -s HEAD 2>/dev/null | cut -b -10 || echo exported)"; \ + REVISION="$$((LANG=C git --git-dir=$(top_srcdir)/.git show-ref -s HEAD 2>/dev/null || echo exported) | cut -b -10)"; \ echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@.tmp mv -f $@.tmp $@