#!/bin/sh -e
[ -z "$DEBUG" ] || set -x
echo "########## glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701: update ##########"
cd /home/ych/rk3568/buildroot
[ -r /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701/.files-list-target-update.txt ] || exit 0
cd /home/ych/rk3568/buildroot/output/rockchip_rk3568/target
/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/tar --no-recursion --ignore-failed-read -cf /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701-update.tar -T /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701/.files-list-target-update.txt
adb shell true >/dev/null
adb push /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701-update.tar /tmp/
adb shell tar xvf /tmp/glibc-2.38-27-g750a45a783906a19591fb8ff6b7841470f1f5701-update.tar
