Commit eac4e0c9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Update the GIT revision properly

parent 68a19d04
...@@ -13,7 +13,7 @@ EXTRA_DIST = extras/COPYING modules/builtin.h.in \ ...@@ -13,7 +13,7 @@ EXTRA_DIST = extras/COPYING modules/builtin.h.in \
libvlc.sym \ libvlc.sym \
libvlccore.sym libvlccore.sym
BUILT_SOURCES = modules/builtin.h misc/revision.c ../include/vlc_about.h BUILT_SOURCES = modules/builtin.h ../include/vlc_about.h
CLEANFILES = $(BUILT_SOURCES) CLEANFILES = $(BUILT_SOURCES)
SUFFIXES = .pc.in .pc SUFFIXES = .pc.in .pc
...@@ -468,13 +468,21 @@ SOURCES_libvlc_control = \ ...@@ -468,13 +468,21 @@ SOURCES_libvlc_control = \
# Stamp rules # Stamp rules
############################################################################### ###############################################################################
misc/revision.c.tmp:
rm -f -- $@
echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@
REVISION="$$(cd "$(top_srcdir)"; git describe 2>/dev/null || echo "$(VERSION)")"; \
echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@
diff $@ misc/revision.c >/dev/null 2>&1 || \
cat misc/revision.c.tmp > misc/revision.c
misc/revision.c: misc/revision.c:
rm -f -- $@ $@.tmp $(MAKE) misc/revision.c.tmp
echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@.tmp cat misc/revision.c.tmp > misc/revision.c
REVISION="$$(cd "$(top_srcdir)"; git describe 2>/dev/null || echo exported)"; \
echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@.tmp BUILT_SOURCES += misc/revision.c.tmp misc/revision.c
mv -f -- $@.tmp $@
.PHONY: misc/revision.c.tmp
############################################################################### ###############################################################################
# Unit/regression test # Unit/regression test
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment