summaryrefslogtreecommitdiffhomepage
path: root/vars/install_strip_host.vars
blob: 668ebff2f9ed280e43bd02991e753ddf8991476a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# 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;
	else
		ex_pkg_state_set "${PKG_NAME}" finish;
	fi;
};

# vim:filetype=sh textwidth=0