install example executables

This commit is contained in:
Joel Winarske
2021-02-23 20:01:28 -08:00
parent 029f1ea6a6
commit 81a4d79c06

View File

@@ -60,6 +60,17 @@ cargo_do_install () {
install -m755 "$tgt" "${D}${rustlibdir}"
have_installed=true
;;
*examples)
if [ -d "$tgt" ]; then
for example in "$tgt/"*; do
if [ -f "$example" ] && [ -x "$example" ]; then
install -d "${D}${bindir}"
install -m755 "$example" "${D}${bindir}"
have_installed=true
fi
done
fi
;;
*)
if [ -f "$tgt" ] && [ -x "$tgt" ]; then
install -d "${D}${bindir}"