Mercurial > hg > sonic-visualiser
comparison deploy/linux/deploy-appimage.sh @ 1920:55241126e0e4
Plugin subdirs
author | Chris Cannam |
---|---|
date | Tue, 03 Jul 2018 11:47:06 +0100 |
parents | 61ef30fb141c |
children | 4ec4c1b9d367 |
comparison
equal
deleted
inserted
replaced
1919:03acc9f89d4f | 1920:55241126e0e4 |
---|---|
95 for plug in $qtplugins; do | 95 for plug in $qtplugins; do |
96 for libdir in $qtlibdirs; do | 96 for libdir in $qtlibdirs; do |
97 lib=$(find $libdir/plugins -name libq$plug.so -print 2>/dev/null || true) | 97 lib=$(find $libdir/plugins -name libq$plug.so -print 2>/dev/null || true) |
98 if [ -n "$lib" ]; then | 98 if [ -n "$lib" ]; then |
99 if [ -f "$lib" ]; then | 99 if [ -f "$lib" ]; then |
100 target="$targetdir/usr/lib/qt5/plugins/$(basename $lib)" | 100 subdir=$(basename $(dirname $lib)) |
101 if [ t"$subdir" = t"plugins" ]; then | |
102 subdir="" | |
103 fi | |
104 target="$targetdir/usr/lib/qt5/plugins/$subdir/$(basename $lib)" | |
101 mkdir -p "$(dirname $target)" | 105 mkdir -p "$(dirname $target)" |
102 cp -v "$lib" "$target" | 106 cp -v "$lib" "$target" |
103 chmod +x "$target" | 107 chmod +x "$target" |
104 add_dependencies "$lib" | 108 add_dependencies "$lib" |
105 break | 109 break |