[vlc-devel] commit: Human readable git versions ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Oct 4 17:04:15 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Oct 4 18:03:02 2008 +0300| [edbcbee7807e6db687c2d3bb4466ba691cbe1216] | committer: Rémi Denis-Courmont
Human readable git versions
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=edbcbee7807e6db687c2d3bb4466ba691cbe1216
---
src/Makefile.am | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index db0d31b..afe3101 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -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 $@
###############################################################################
More information about the vlc-devel
mailing list