packaging: use "find" instead of "du" to find files... :-)
authorMichael Adam <obnox@samba.org>
Fri, 12 Sep 2008 13:07:00 +0000 (15:07 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 10 Feb 2009 23:27:35 +0000 (00:27 +0100)
Michael
(This used to be commit 768aa82361a2c4b0aab71433b7593723a2868f0a)
(cherry picked from commit fd7635a1161e25d88a8252a5cf9de70ca2fe4232)

packaging/bin/update-pkginfo

index 6ff6312ebd8154ff181f5a8f20891625c3e8e465..ed34db0bb3d043e61d73cdb705bbc7f489cf4fd7 100755 (executable)
@@ -15,7 +15,7 @@ if [ $# -ne 3 ]; then
     exit 1
 fi
 
-for f in `du -a | awk '{print $2}' | grep \.tmpl$`; do
+for f in `find . -type f -name "*.tmpl"`; do
         f2=`echo $f | sed s/.tmpl//g`
         echo $f2
         sed -e s/PVERSION/$VERSION/g \