Blame vars/automake_1_11_6_host.vars

Lucio Andrés Illanes Albornoz 6961e7
#
Lucio Andrés Illanes Albornoz 6961e7
# set +o errexit -o noglob -o nounset is assumed.
Lucio Andrés Illanes Albornoz 6961e7
#
Lucio Andrés Illanes Albornoz 6961e7
Lucio Andrés Illanes Albornoz 6961e7
pkg_automake_1_11_6_host_install_make_post() {
Lucio Andrés Illanes Albornoz 6961e7
	local _fname="" _fname_base="";
Lucio Andrés Illanes Albornoz 6961e7
Lucio Andrés Illanes Albornoz 6961e7
	for _fname in $(find "${PKG_DESTDIR}/bin" -type f -perm /0111 -name "*-${PKG_VERSION%.*}"); do
Lucio Andrés Illanes Albornoz 6961e7
		_fname_base="${_fname##*/}";
Lucio Andrés Illanes Albornoz 6961e7
		rtl_fileop ln_symbolic "${_fname_base%%-[0-9]*}-${PKG_VERSION}" "${_fname}";
Lucio Andrés Illanes Albornoz 6961e7
	done;
Lucio Andrés Illanes Albornoz 6961e7
	for _fname in	\
Lucio Andrés Illanes Albornoz 6961e7
			$(find "${PKG_DESTDIR}/bin" -type f -perm /0111 -not -name "*-${PKG_VERSION%.*}")		\
Lucio Andrés Illanes Albornoz c6f159
			"${PKG_DESTDIR}/share/doc/automake"; do
Lucio Andrés Illanes Albornoz 6961e7
		rtl_fileop mv "${_fname}" "${_fname}-${PKG_VERSION}" || return 1;
Lucio Andrés Illanes Albornoz 6961e7
	done;
Lucio Andrés Illanes Albornoz 6961e7
	for _fname in $(find "${PKG_DESTDIR}/share/man" -type f -name "*-${PKG_VERSION%.*}.[0-9]*"); do
Lucio Andrés Illanes Albornoz 6961e7
		_fname_base="${_fname##*/}";
Lucio Andrés Illanes Albornoz 6961e7
		rtl_fileop ln_symbolic "${_fname_base%%-[0-9]*}-${PKG_VERSION}.${_fname_base##*.}" "${_fname}";
Lucio Andrés Illanes Albornoz 6961e7
	done;
Lucio Andrés Illanes Albornoz c6f159
	rtl_fileop rm "${PKG_DESTDIR}/share/info/dir";
Lucio Andrés Illanes Albornoz 6961e7
	for _fname in	\
Lucio Andrés Illanes Albornoz 6961e7
			$(find "${PKG_DESTDIR}/share/man" -type f -name "*.[0-9]*" -not -name "*-${PKG_VERSION%.*}")	\
Lucio Andrés Illanes Albornoz 6961e7
			$(find "${PKG_DESTDIR}/share/info" -type f -name "*.info*"); do
Lucio Andrés Illanes Albornoz 6961e7
		rtl_fileop mv "${_fname}" "${_fname%.*}-${PKG_VERSION}.${_fname##*.}";
Lucio Andrés Illanes Albornoz 6961e7
	done;
Lucio Andrés Illanes Albornoz 6961e7
};
Lucio Andrés Illanes Albornoz 6961e7
Lucio Andrés Illanes Albornoz 6961e7
# vim:filetype=sh textwidth=0