From e6b20aa94016e228096229844d49d3a28ebf947d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Thu, 13 Mar 2008 00:13:49 +0100 Subject: [PATCH] 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. --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 $@ -- 2.39.2