]> git.pld-linux.org Git - packages/rpm.git/commitdiff
do not `find\' empty .mo files
authorankry <ankry@pld-linux.org>
Tue, 27 Jul 2004 00:09:23 +0000 (00:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-find-lang -> 1.10

rpm-find-lang

index d307c48741ec5853babcba9d130d958136332b5c..fc18350d2d7492d98ab960f95142a06ce1c53696 100644 (file)
@@ -95,7 +95,9 @@ while test $# -gt 0 ; do
     esac
 done    
 
-find $TOP_DIR -type f|sed '
+find $TOP_DIR -type f -name \*.mo | xargs file | egrep -v ', 1 messages$' |\
+sed '
+s/:.*//
 1i\
 %defattr (644, root, root, 755)
 s:'"$TOP_DIR"'::
This page took 0.041348 seconds and 4 git commands to generate.