comparison 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
comparison
equal deleted inserted replaced
766:dc8270ceb8fc 772:f8264ad5737a
7 exit 2 7 exit 2
8 fi 8 fi
9 9
10 frameworks="QtCore QtNetwork QtGui QtXml QtWidgets QtPrintSupport" 10 frameworks="QtCore QtNetwork QtGui QtXml QtWidgets QtPrintSupport"
11 11
12 plugins="qtaccessiblewidgets qdds qgif qicns qico qjp2 qjpeg qmng qtga qtiff qwbmp qwebp qcocoa qminimal" 12 plugins="taccessiblewidgets dds gif icns ico jp2 jpeg mng tga tiff wbmp webp cocoa minimal offscreen"
13 13
14 qtdir=$(grep "Command:" Makefile | head -1 | awk '{ print $3; }' | sed s,/bin/.*,,) 14 qtdir=$(grep "Command:" Makefile | head -1 | awk '{ print $3; }' | sed s,/bin/.*,,)
15 15
16 if [ ! -d "$qtdir" ]; then 16 if [ ! -d "$qtdir" ]; then
17 echo "Failed to discover Qt installation directory from Makefile, exiting" 17 echo "Failed to discover Qt installation directory from Makefile, exiting"
33 echo "Done" 33 echo "Done"
34 34
35 echo 35 echo
36 echo "Copying plugins..." 36 echo "Copying plugins..."
37 for plug in $plugins; do 37 for plug in $plugins; do
38 pfile=$(ls "$qtdir"/plugins/*/lib"$plug".dylib) 38 pfile=$(ls "$qtdir"/plugins/*/libq"$plug".dylib)
39 if [ ! -f "$pfile" ]; then 39 if [ ! -f "$pfile" ]; then
40 echo "Failed to find plugin $plug, exiting" 40 echo "Failed to find plugin $plug, exiting"
41 exit 2 41 exit 2
42 fi 42 fi
43 cp -v "$pfile" "$pdir" || exit 2 43 target="$pdir"/${pfile##?*plugins/}
44 tdir=`dirname "$target"`
45 mkdir -p "$tdir"
46 cp -v "$pfile" "$target" || exit 2
44 done 47 done
45 48
46 echo "Done" 49 echo "Done"
47 50
51