#!/bin/sh -e
[ -z "$DEBUG" ] || set -x
echo "########## dejavu-2.37: target install ##########"
cd /home/ych/rk3568/buildroot
touch /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/dejavu-2.37/.stamp_installed
if [ -r /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/dejavu-2.37/.files-list-target.txt ]; then cd /home/ych/rk3568/buildroot/output/rockchip_rk3568/target; cat /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/dejavu-2.37/.files-list-target.txt | xargs md5sum /dev/null > /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/dejavu-2.37/.md5 2>/dev/null || true; cd -; fi
cd /home/ych/rk3568/buildroot
mkdir -p /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/usr/share/fonts/dejavu/
for i in  DejaVuSansMono*.ttf DejaVuSans.ttf DejaVuSans-*.ttf DejaVuSerif.ttf DejaVuSerif-*.ttf DejaVuSansCondensed*.ttf DejaVuSerifCondensed*.ttf ; do /usr/bin/install -m 0644 /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/dejavu-2.37/ttf/$i /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/usr/share/fonts/dejavu/ || exit 1 ; done
for i in  20-unhint-small-dejavu-sans-mono.conf 57-dejavu-sans-mono.conf 20-unhint-small-dejavu-sans.conf 57-dejavu-sans.conf 20-unhint-small-dejavu-serif.conf 57-dejavu-serif.conf ; do /usr/bin/install -D -m 0644 /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/dejavu-2.37/fontconfig/$i /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/usr/share/fontconfig/conf.avail/$i || exit 1 ; done
cd /home/ych/rk3568/buildroot
cd /home/ych/rk3568/buildroot
rm -f -rf  /home/ych/rk3568/buildroot/output/rockchip_rk3568/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/target; find . \( -type f -o -type l \) -cnewer /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/dejavu-2.37/.stamp_installed | tee /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/dejavu-2.37/.files-list-target.txt | /home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/tar --no-recursion --ignore-failed-read -cf /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/dejavu-2.37/dejavu-2.37.tar -T -; true;
cd /home/ych/rk3568/buildroot/output/rockchip_rk3568/target; if [ -r /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/dejavu-2.37/.md5 ]; then md5sum -c /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/dejavu-2.37/.md5 2>&1 | grep "FAILED$" | cut -d':' -f1 > /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/dejavu-2.37/.files-list-target-update.txt; fi
