Blame vars/install_strip_host.vars

Lucio Andrés Illanes Albornoz 378fac
#
Lucio Andrés Illanes Albornoz 378fac
# set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz 378fac
#
Lucio Andrés Illanes Albornoz 378fac
Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
pkg_install_strip_host_all() {
Lucio Andrés Illanes Albornoz 378fac
	if [ -e "${PREFIX}/bin/${TARGET}-install-strip" ]; then
Lucio Andrés Illanes Albornoz 378fac
		build_fileop rm "${PREFIX}/bin/${TARGET}-install-strip";
Lucio Andrés Illanes Albornoz 378fac
	fi;
Lucio Andrés Illanes Albornoz 378fac
	cat > "${PREFIX}/bin/${TARGET}-install-strip" <
Lucio Andrés Illanes Albornoz 378fac
#!/bin/sh
Lucio Andrés Illanes Albornoz 378fac
install -s "\${@}";
Lucio Andrés Illanes Albornoz 378fac
EOF
Lucio Andrés Illanes Albornoz 378fac
	chmod +x "${PREFIX}/bin/${TARGET}-install-strip";
Lucio Andrés Illanes Albornoz 378fac
};
Lucio Andrés Illanes Albornoz 378fac
Lucio Andrés Illanes Albornoz 378fac
# vim:filetype=sh