blob: 624cb749a7d656920c60cebf4804107eb1f5fbb0 (
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 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
|