From 73f6b44df6a7193962b562e6ad47517c7867f00f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Fri, 9 Mar 2018 10:57:12 +0100 Subject: [PATCH] win32: package: Fix plugins packaging cp --parents was copying the entire hierarchy leading to the plugins folder, causing resulting builds to fail to load any plugins --- extras/package/win32/package.mak | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extras/package/win32/package.mak b/extras/package/win32/package.mak index ff78ba840a..6d145896ab 100644 --- a/extras/package/win32/package.mak +++ b/extras/package/win32/package.mak @@ -50,8 +50,11 @@ package-win-common: package-win-install package-win-sdk done cp $(srcdir)/share/icons/vlc.ico $(win32_destdir) - mkdir -p "$(win32_destdir)"/plugins - find $(prefix)/lib/vlc/plugins/ -type f \( -not -name '*.la' -and -not -name '*.a' \) -exec cp -v --parents "{}" "$(win32_destdir)/plugins/" \; + for plugindir in $(prefix)/lib/vlc/plugins/*/; do \ + plugin_destdir="$(win32_destdir)/plugins/`basename $$plugindir`"; \ + mkdir -p "$$plugin_destdir"; \ + find "$$plugindir" -type f \( -not -name '*.la' -and -not -name '*.a' \) -exec cp -v "{}" "$$plugin_destdir" \; ;\ + done -cp -r $(prefix)/share/locale $(win32_destdir) # BD-J JAR -- 2.11.4.GIT