[vlc-commits] modules: remove bashism

Thomas Guillem git at videolan.org
Tue Apr 7 13:30:55 CEST 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Apr  7 09:15:48 2015 +0200| [21af43fa2853ddd90ef1c8b2e4945d4daf1224e4] | committer: Jean-Baptiste Kempf

modules: remove bashism

It Fixes OS/2 compilation.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/common.am |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/common.am b/modules/common.am
index 9ac2929..65c962a 100644
--- a/modules/common.am
+++ b/modules/common.am
@@ -15,7 +15,7 @@ CLEANFILES = $(BUILT_SOURCES)
 LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
 
 # Module name from object or executable file name.
-MODULE_NAME = $$(p="$@"; p="$${p\#\#*/}"; p="$${p\#lib}"; p="$${p%_plugin*}"; p="$${p//-/\_}"; p="$${p%.lo}"; echo "$$p")
+MODULE_NAME = $$(p="$@"; p="$${p\#\#*/}"; p="$${p\#lib}"; p="$${p%_plugin*}"; p=$$(echo "$$p"|sed 's/-/_/g'); p="$${p%.lo}"; echo "$$p")
 
 AM_CPPFLAGS = -DMODULE_STRING=\"$(MODULE_NAME)\"
 if HAVE_DYNAMIC_PLUGINS



More information about the vlc-commits mailing list