midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

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 (arab, vxp) ec19f0
	if [ -e "${PREFIX}/bin/${PKG_TARGET}-install-strip" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		ex_rtl_fileop rm "${PREFIX}/bin/${PKG_TARGET}-install-strip";
Lucio Andrés Illanes Albornoz 378fac
	fi;
Lucio Andrés Illanes Albornoz babea7
	ex_rtl_fileop mkdir "${PREFIX}/bin";
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
	cat > "${PREFIX}/bin/${PKG_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 (arab, vxp) ec19f0
	chmod +x "${PREFIX}/bin/${PKG_TARGET}-install-strip";
Lucio Andrés Illanes Albornoz 378fac
};
Lucio Andrés Illanes Albornoz 378fac
Lucio Andrés Illanes Albornoz 378fac
# vim:filetype=sh