[vlc-devel] commit: Be bsdmake friendly : don't embed $() in another $() ( Rafaël Carré )

git version control git at videolan.org
Sun Apr 6 20:14:58 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Apr  6 20:13:34 2008 +0200| [bfd22ddd881841177e7b489d2e0bf4beee5464b7]

Be bsdmake friendly : don't embed $() in another $()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bfd22ddd881841177e7b489d2e0bf4beee5464b7
---

 src/Makefile.am |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 4290a75..5f474be 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -391,7 +391,8 @@ SOURCES_libvlc_control = \
 misc/revision.c:
 	rm -f $@ $@.tmp
 	echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@.tmp
-	REVISION="$$((LANG=C git --git-dir=$(top_srcdir)/.git show-ref -s HEAD 2>/dev/null || echo exported) | cut -b -10)"; \
+	REVISION="$$(LANG=C git --git-dir=$(top_srcdir)/.git show-ref -s HEAD 2>/dev/null || echo exported)"; \
+	REVISION="$$(echo $$REVISION|cut -b -10)"; \
 	echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@.tmp
 	mv -f $@.tmp $@
 




More information about the vlc-devel mailing list