prepallman: avoid temp file indirection
authorMike Frysinger <vapier@gentoo.org>
Wed, 20 Mar 2013 08:29:23 +0000 (04:29 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 20 Mar 2013 08:29:23 +0000 (04:29 -0400)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
bin/ebuild-helpers/prepallman

index 7c78324cd83b4faff36cbfc2b118daadeb1a0e1f..5331eaf0186e21828dabd230689011fefbac4858 100755 (executable)
@@ -13,11 +13,10 @@ fi
 
 ret=0
 
-find "${ED}" -type d -name man > "${T}"/prepallman.filelist
-while read -r mandir ; do
+while IFS= read -r -d '' mandir ; do
        mandir=${mandir#${ED}}
        prepman "${mandir%/man}"
        ((ret|=$?))
-done < "${T}"/prepallman.filelist
+done < <(find "${ED}" -type d -name man -print0)
 
 exit ${ret}