#!/bin/sh -e
[ -z "$DEBUG" ] || set -x
echo "########## glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701: target install ##########"
cd /home/ych/rk3568/buildroot
touch /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701/.stamp_installed
if [ -r /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701/.files-list-target.txt ]; then cd /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target; cat /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701/.files-list-target.txt | xargs md5sum /dev/null > /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701/.md5 2>/dev/null || true; cd -; fi
cd /home/ych/rk3568/buildroot
for libpattern in ld*.so.* libanl.so.* libc.so.* libcrypt.so.* libdl.so.* libgcc_s.so.* libnsl.so.* libm.so.* libpthread.so.* libresolv.so.* librt.so.* libutil.so.* libnss_files.so.* libnss_dns.so.* libmvec.so.*; do LIBPATTERN="$libpattern"; LIBPATHS=`find /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/sysroot/ -name "${LIBPATTERN}" 2>/dev/null` ; for LIBPATH in ${LIBPATHS} ; do while true ; do LIBNAME=`basename ${LIBPATH}`; DESTDIR=`echo ${LIBPATH} | sed "s,^/home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/aarch64-buildroot-linux-gnu/sysroot/,," | xargs dirname` ; mkdir -p /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/${DESTDIR}; rm -fr /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/${DESTDIR}/${LIBNAME}; if test -h ${LIBPATH} ; then cp -d ${LIBPATH} /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/${DESTDIR}/${LIBNAME}; OLD_LIBPATH="${LIBPATH}"; LIBPATH="`readlink -f ${LIBPATH}`"; if [ "${LIBPATH}" = "" ]; then echo "LIBPATH empty after trying to resolve symlink ${OLD_LIBPATH}" 1>&2; exit 1; fi; elif test -f ${LIBPATH}; then /usr/bin/install -D -m0755 ${LIBPATH} /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/${DESTDIR}/${LIBNAME}; break ; else exit -1; fi; done; done ; done
cd /home/ych/rk3568/buildroot
cd /home/ych/rk3568/buildroot
rm -f -rf  /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target/share/info/dir
cd /home/ych/rk3568/buildroot
if test -n "" ; then rm -f -f  ; fi
cd /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target; find . \( -type f -o -type l \) -cnewer /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701/.stamp_installed | tee /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701/.files-list-target.txt | /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/tar --no-recursion --ignore-failed-read -cf /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701.tar -T -; true;
cd /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target; if [ -r /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701/.md5 ]; then md5sum -c /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701/.md5 2>&1 | grep "FAILED$" | cut -d':' -f1 > /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701/.files-list-target-update.txt; fi
