summaryrefslogtreecommitdiffhomepage
path: root/vars/install_strip_host.vars
blob: e897420e85f1cc1d8a89d0dcc4b9a96bb7e6d17a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# set -o errexit -o noglob are assumed.
#

pkg_install_strip_host_all() {
	if [ -e "${PREFIX}/bin/${PKG_TARGET}-install-strip" ]; then
		ex_rtl_fileop rm "${PREFIX}/bin/${PKG_TARGET}-install-strip";
	fi;
	cat > "${PREFIX}/bin/${PKG_TARGET}-install-strip" <<EOF
#!/bin/sh
install -s "\${@}";
EOF
	chmod +x "${PREFIX}/bin/${PKG_TARGET}-install-strip";
};

# vim:filetype=sh