#!/bin/sh -e
[ -z "$DEBUG" ] || set -x
echo "########## input-event-daemon-0.1.3: target install ##########"
cd /home/ych/rk3568/buildroot
touch /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/input-event-daemon-0.1.3/.stamp_installed
if [ -r /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/input-event-daemon-0.1.3/.files-list-target.txt ]; then cd /home/ych/rk3568/buildroot/output/rockchip_rk3568/target; cat /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/input-event-daemon-0.1.3/.files-list-target.txt | xargs md5sum /dev/null > /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/input-event-daemon-0.1.3/.md5 2>/dev/null || true; cd -; fi
cd /home/ych/rk3568/buildroot
/usr/bin/install -m 755 -D /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/input-event-daemon-0.1.3/input-event-daemon /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/usr/bin/input-event-daemon
/usr/bin/install -m 644 -D /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/input-event-daemon-0.1.3/docs/sample.conf /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/etc/input-event-daemon.conf
/usr/bin/install -m 0755 -d /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/etc/input-event-daemon.conf.d/
# Listen all devices by default.
/bin/sed -i -e '/^listen = /d' /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/etc/input-event-daemon.conf
cd /home/ych/rk3568/buildroot
/usr/bin/install -m 0755 -D package/input-event-daemon/S99input-event-daemon /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/etc/init.d/S99input-event-daemon
cd /home/ych/rk3568/buildroot
/usr/bin/install -m 0755 -D package/input-event-daemon//power-key.sh /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/usr/bin/
/usr/bin/install -m 0755 -D package/input-event-daemon//power-key.conf /home/ych/rk3568/buildroot/output/rockchip_rk3568/target/etc/input-event-daemon.conf.d/
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/input-event-daemon-0.1.3/.stamp_installed | tee /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/input-event-daemon-0.1.3/.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/input-event-daemon-0.1.3/input-event-daemon-0.1.3.tar -T -; true;
cd /home/ych/rk3568/buildroot/output/rockchip_rk3568/target; if [ -r /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/input-event-daemon-0.1.3/.md5 ]; then md5sum -c /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/input-event-daemon-0.1.3/.md5 2>&1 | grep "FAILED$" | cut -d':' -f1 > /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/input-event-daemon-0.1.3/.files-list-target-update.txt; fi
