Preserve symlinks

parent 2cf7fe3f
Pipeline #34981099 passed with stage
in 2 minutes and 57 seconds
......@@ -46,7 +46,7 @@ FILES="libandroid-properties.so.1
libGLESv2.so.2
libvibrator.so.1.0.0"
TARGET="/var/lib/flatpak/extension/org.freedesktop.Platform.GL.default/#DEB_HOST_GNU_CPU#/1.0/lib/"
TARGET="/var/lib/flatpak/extension/org.freedesktop.Platform.GL.default/#DEB_HOST_GNU_CPU#/1.0/lib"
LIBDIR="/usr/lib/#DEB_HOST_MULTIARCH#"
case "$1" in
......@@ -54,14 +54,18 @@ case "$1" in
echo "Updating files in ${TARGET} ..."
if ! [ -d ${TARGET} ]; then
mkdir -p ${TARGET}
mkdir -p ${TARGET}/libhybris
mkdir -p ${TARGET}/libhybris/linker
fi
for file in ${FILES}; do
if [ -f ${LIBDIR}/$file ]; then
echo " $file"
cp ${LIBDIR}/${file} ${TARGET}
cp -a ${LIBDIR}/${file} ${TARGET}/${file}
fi
done
ln -s ../libhardware.so.2.0.0 ${TARGET}/libhybris/libhardware.so.2
;;
esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment