summaryrefslogtreecommitdiffhomepage
path: root/vars/install_strip_host.vars
blob: f8d6ca8e9bcc69133b615fa7f5bd630c36d6aa6f (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_install() {
	if [ -e "${PREFIX}/bin/${TARGET}-install-strip" ]; then
		build_fileop rm "${PREFIX}/bin/${TARGET}-install-strip";
	fi;
	cat > "${PREFIX}/bin/${TARGET}-install-strip" <<EOF
#!/bin/sh
install -s "\${@}";
EOF
	chmod +x "${PREFIX}/bin/${TARGET}-install-strip";
};

# vim:filetype=sh