Mercurial > hg > sonic-visualiser
diff deploy/linux/deploy-appimage.sh @ 1890:fb9a63059d25 appimage
Attempt to handle libraries in /lib. I have a bad feeling about this
author | Chris Cannam |
---|---|
date | Wed, 27 Jun 2018 21:08:26 +0100 |
parents | d8dfd30d6d41 |
children | 8ce9fd471188 |
line wrap: on
line diff
--- a/deploy/linux/deploy-appimage.sh Wed Jun 27 16:23:16 2018 +0100 +++ b/deploy/linux/deploy-appimage.sh Wed Jun 27 21:08:26 2018 +0100 @@ -26,7 +26,7 @@ add_dependencies() { local binary="$1" - for lib in $(ldd "$binary" | grep '=> /usr/lib/' | sed 's/^.*=> //' | sed 's/ .*$//' | grep -v 'libc.so' | grep -v 'libm.so'); do + for lib in $(ldd "$binary" | egrep '=> (/usr)?/lib/' | sed 's/^.*=> //' | sed 's/ .*$//' | grep -v 'libc.so' | grep -v 'libm.so'); do mkdir -p "$targetdir/$(dirname $lib)" if [ ! -f "$targetdir/$lib" ]; then cp -Lv "$lib" "$targetdir/$lib"