diff deploy/osx/copy-qt.sh @ 772:f8264ad5737a

Fix plugin copying (correct target directories) - transplanted from beta branch
author Chris Cannam
date Thu, 14 Aug 2014 10:55:42 +0100
parents d18c89386a71
children 4a7c62938a13 9fbd599b4e3a 55575ded7d8c
line wrap: on
line diff
--- a/deploy/osx/copy-qt.sh	Wed Aug 13 22:03:19 2014 +0100
+++ b/deploy/osx/copy-qt.sh	Thu Aug 14 10:55:42 2014 +0100
@@ -9,7 +9,7 @@
 
 frameworks="QtCore QtNetwork QtGui QtXml QtWidgets QtPrintSupport"
 
-plugins="qtaccessiblewidgets qdds qgif qicns qico qjp2 qjpeg qmng qtga qtiff qwbmp qwebp qcocoa qminimal"
+plugins="taccessiblewidgets dds gif icns ico jp2 jpeg mng tga tiff wbmp webp cocoa minimal offscreen"
 
 qtdir=$(grep "Command:" Makefile | head -1 | awk '{ print $3; }' | sed s,/bin/.*,,)
 
@@ -35,13 +35,17 @@
 echo
 echo "Copying plugins..."
 for plug in $plugins; do
-    pfile=$(ls "$qtdir"/plugins/*/lib"$plug".dylib)
+    pfile=$(ls "$qtdir"/plugins/*/libq"$plug".dylib)
     if [ ! -f "$pfile" ]; then
 	echo "Failed to find plugin $plug, exiting"
 	exit 2
     fi
-    cp -v "$pfile" "$pdir" || exit 2
+    target="$pdir"/${pfile##?*plugins/}
+    tdir=`dirname "$target"`
+    mkdir -p "$tdir"
+    cp -v "$pfile" "$target" || exit 2
 done
 
 echo "Done"
 
+