]> git.sesse.net Git - vlc/commitdiff
revision: work around JVLC tag pollution
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 26 Sep 2009 08:34:29 +0000 (11:34 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 26 Sep 2009 08:34:29 +0000 (11:34 +0300)
Still plain git-describe is not fixed/fixable, which is hugely annoying
(I use it a lot).

src/Makefile.am

index d49d292f9ff1d3354e7c29c2c1baf4af9ba22c13..a508b86287c7a32424064591add5a1a419365a06 100644 (file)
@@ -511,14 +511,14 @@ revision.c: revision.txt
        echo "const char psz_vlc_changeset[] = \"$$(cat revision.txt)\";" \
                > revision.c
 
-revision.txt:
+revision.txt: Makefile.am
        $(MAKE) stamp-revision
        touch revision.txt
 
 stamp-revision:
        rm -f -- revision.tmp
        (git --git-dir="$(top_srcdir)/.git/" describe --tags --long \
-               --always || echo exported) > revision.tmp
+               --match '?.*.*' --always || echo exported) > revision.tmp
        if diff revision.tmp revision.txt >/dev/null; then \
                rm -f -- revision.tmp; \
        else \