|
Lucio Andrés Illanes Albornoz |
378fac |
#
|
|
Lucio Andrés Illanes Albornoz |
e1d469 |
# set +o errexit -o noglob -o nounset is assumed.
|
|
Lucio Andrés Illanes Albornoz |
378fac |
#
|
|
Lucio Andrés Illanes Albornoz |
378fac |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
pkg_install_strip_host_all() {
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
if [ -e "${PREFIX}/bin/${PKG_TARGET}-install-strip" ]\
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
&& ! rtl_fileop rm "${PREFIX}/bin/${PKG_TARGET}-install-strip"; then
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
return 1;
|
|
Lucio Andrés Illanes Albornoz |
378fac |
fi;
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
if ! rtl_fileop mkdir "${PREFIX}/bin" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
|| ! cat > "${PREFIX}/bin/${PKG_TARGET}-install-strip" <
|
|
Lucio Andrés Illanes Albornoz |
378fac |
#!/bin/sh
|
|
Lucio Andrés Illanes Albornoz |
378fac |
install -s "\${@}";
|
|
Lucio Andrés Illanes Albornoz |
378fac |
EOF
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
then
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
return 1;
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
elif ! rtl_fileop chmod +x "${PREFIX}/bin/${PKG_TARGET}-install-strip"; then
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
return 1;
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
fi;
|
|
Lucio Andrés Illanes Albornoz |
378fac |
};
|
|
Lucio Andrés Illanes Albornoz |
378fac |
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
# vim:filetype=sh textwidth=0
|