Skip to content
Snippets Groups Projects

dbscripts: fix createlinks for filenames that contain spaces

Merged Christian Heusel requested to merge gromit/infrastructure:524-createlinks-spaces into master
All threads resolved!
@@ -44,9 +44,7 @@ for repo in ${repos[@]}; do
echo "$repo/$arch: $pkgname"
mkdir -p ${tmppkgdir}/pkg
bsdtar -xof $pkg -C ${tmppkgdir}/pkg --include={opt,{,usr/}{lib{,32},{s,}bin}}'/*' 2>/dev/null
for f in $(find ${tmppkgdir}/pkg -type f); do
readelf -d "$f" 2> /dev/null | sed -nr 's/.*Shared library: \[(.*)\].*/\1/p'
done | sort -u > ${tmppkgdir}/links
find "${tmppkgdir}/pkg" -type f -print0 | xargs -0 readelf -d 2> /dev/null | sed -nr 's/.*Shared library: \[(.*)\].*/\1/p' | sort -u > "${tmppkgdir}/links"
rm -rf ${tmppkgdir}/pkg
fi
done
Loading