#!@BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: /var/cvsroot/gentoo-src/portage/bin/prepallman,v 1.10 2004/10/04 13:56:50 vapier Exp $

ret=0

find "${ED}" -type d -name man > "${T}"/prepallman.filelist
while read mandir ; do
	mandir=${mandir#${ED}}
	prepman "${mandir%/man}"
	((ret+=$?))
done < "${T}"/prepallman.filelist

exit ${ret}
