1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-28 23:09:59 +02:00

revision: work around JVLC tag pollution

Still plain git-describe is not fixed/fixable, which is hugely annoying
(I use it a lot).
This commit is contained in:
Rémi Denis-Courmont 2009-09-26 11:34:29 +03:00
parent de149843c4
commit e378e077a1

View 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 \