Make prepinfo remove installed info indexes recursively. Thanks to Christian Faulham...
authorZac Medico <zmedico@gentoo.org>
Tue, 13 Mar 2007 06:58:59 +0000 (06:58 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 13 Mar 2007 06:58:59 +0000 (06:58 -0000)
svn path=/main/branches/2.1.2/; revision=6206

bin/prepinfo

index 2d3c80e0889bc162ee4941cd713307c716e7dde4..ff1c6a88ad1c31b058afd11f08c724f6e5e832f0 100755 (executable)
@@ -24,6 +24,8 @@ if [[ ! -d ${D}${infodir} ]] ; then
        fi
 fi
 
-rm -f "${D}${infodir}"/dir{,.info}{,.gz,.bz2}
+find "${D}${infodir}" -type d -print0 | while read -d $'\0' x ; do
+       rm -f "${x}"/dir{,.info}{,.gz,.bz2}
+done
 
 exec ecompressdir "${infodir}"