Make prepinfo remove installed info indexes recursively. Thanks to Christian Faulham...
authorZac Medico <zmedico@gentoo.org>
Mon, 12 Mar 2007 23:42:16 +0000 (23:42 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 12 Mar 2007 23:42:16 +0000 (23:42 -0000)
svn path=/main/trunk/; revision=6205

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}"