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

Human readable git versions

parent ee86562c
......@@ -436,12 +436,11 @@ SOURCES_libvlc_control = \
###############################################################################
misc/revision.c:
rm -f $@ $@.tmp
rm -f -- $@ $@.tmp
echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@.tmp
REVISION="$$(LANG=C git --git-dir=$(top_srcdir)/.git show-ref --head -s HEAD 2>/dev/null || echo exported)"; \
REVISION="$$(echo $$REVISION|cut -b -10)"; \
REVISION="$$(cd "$(top_srcdir)"; git describe 2>/dev/null || echo exported)"; \
echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@.tmp
mv -f $@.tmp $@
mv -f -- $@.tmp $@
###############################################################################
......
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