]> git.sesse.net Git - vlc/commitdiff
Fix git commit generation
authorRafaël Carré <funman@videolan.org>
Wed, 12 Mar 2008 23:13:49 +0000 (00:13 +0100)
committerRafaël Carré <funman@videolan.org>
Wed, 12 Mar 2008 23:17:25 +0000 (00:17 +0100)
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

index 8c10bea4f4ea2b138ed852c2a4ff9dea0530e271..983e1fab96bf49581d9c63d0379eddade42a1083 100644 (file)
@@ -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 $@