Lucio Andrés Illanes Albornoz 042fe2
#
Lucio Andrés Illanes Albornoz e1d469
# set +o errexit -o noglob -o nounset is assumed.
Lucio Andrés Illanes Albornoz 042fe2
#
Lucio Andrés Illanes Albornoz 042fe2
Lucio Andrés Illanes Albornoz 042fe2
pkg_texinfo_host_install_make_post() {
Lucio Andrés Illanes Albornoz 042fe2
	if [ -e "${PKG_DESTDIR}/bin/makeinfo" ]; then
Lucio Andrés Illanes Albornoz bf9edf
		if ! rtl_fileop mv "${PKG_DESTDIR}/bin/makeinfo" "${PKG_DESTDIR}/bin/makeinfo.dist"; then
Lucio Andrés Illanes Albornoz bf9edf
			return 1;
Lucio Andrés Illanes Albornoz bf9edf
		fi;
Lucio Andrés Illanes Albornoz 042fe2
	fi;
Lucio Andrés Illanes Albornoz bf9edf
	if ! cat > "${PKG_DESTDIR}/bin/makeinfo" <
Lucio Andrés Illanes Albornoz 042fe2
#!/bin/sh
Lucio Andrés Illanes Albornoz 042fe2
export PERL5LIB="${PREFIX}/share/texinfo:${PREFIX}/share/texinfo/lib/libintl-perl/lib:${PREFIX}/share/texinfo/lib/Text-Unidecode/lib:${PREFIX}/share/texinfo/lib/Unicode-EastAsianWidth/lib";
Lucio Andrés Illanes Albornoz 042fe2
makeinfo.dist "\${@}";
Lucio Andrés Illanes Albornoz 042fe2
EOF
Lucio Andrés Illanes Albornoz bf9edf
then
Lucio Andrés Illanes Albornoz bf9edf
		return 1;
Lucio Andrés Illanes Albornoz bf9edf
	else
Lucio Andrés Illanes Albornoz bf9edf
		rtl_fileop chmod +x "${PKG_DESTDIR}/bin/makeinfo";
Lucio Andrés Illanes Albornoz bf9edf
	fi;
Lucio Andrés Illanes Albornoz 042fe2
};
Lucio Andrés Illanes Albornoz 042fe2
Lucio Andrés Illanes Albornoz 042fe2
# vim:filetype=sh textwidth=0