[vlc-devel] commit: Fix git commit generation ( Rafaël Carré )

git version control git at videolan.org
Thu Mar 13 00:17:09 CET 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Mar 13 00:13:49 2008 +0100| [e6b20aa94016e228096229844d49d3a28ebf947d]

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e6b20aa94016e228096229844d49d3a28ebf947d
---

 src/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 8c10bea..983e1fa 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 $@
 




More information about the vlc-devel mailing list