[vlc-devel] [PATCH] modules: remove bashism

Thomas Guillem thomas at gllm.fr
Tue Apr 7 09:15:48 CEST 2015


It Fixes OS/2 compilation.
---
 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
-- 
2.1.3




More information about the vlc-devel mailing list