Be bsdmake friendly : don't embed $() in another $()
authorRafaël Carré <funman@videolan.org>
Sun, 6 Apr 2008 18:13:34 +0000 (20:13 +0200)
committerRafaël Carré <funman@videolan.org>
Sun, 6 Apr 2008 18:14:03 +0000 (20:14 +0200)
src/Makefile.am

index 4290a75..5f474be 100644 (file)
@@ -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 $@