summaryrefslogtreecommitdiffhomepage
path: root/vars/install_strip_host.vars
blob: 39cd15e432214c53741ba562074e95eb6af4c4b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# set +o errexit -o noglob -o nounset is assumed.
#

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

# vim:filetype=sh textwidth=0