]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- don't call file with empty arg list; add defattr even if no *.mo auto/ac/rpm-4_4-0_20040614_0_7
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 18 Oct 2004 09:26:22 +0000 (09:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-find-lang -> 1.11

rpm-find-lang

index fc18350d2d7492d98ab960f95142a06ce1c53696..e1293fbadd5194796794c9003a1c83f27b76d9ad 100644 (file)
@@ -95,17 +95,17 @@ while test $# -gt 0 ; do
     esac
 done    
 
-find $TOP_DIR -type f -name \*.mo | xargs file | egrep -v ', 1 messages$' |\
+echo '%defattr(644,root,root,755)' > $MO_NAME
+
+find $TOP_DIR -type f -name \*.mo | xargs -r file | egrep -v ', 1 messages$' |\
 sed '
 s/:.*//
-1i\
-%defattr (644, root, root, 755)
 s:'"$TOP_DIR"'::
 '"$ALL_NAME$MO"'s:\(.*/share/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
 '"$NO_ALL_NAME$MO"'s:\(.*/share/locale/\)\([^/]\+\)\(.*/'"$NAME"'\.mo$\):%lang(\2) \1\2\3:
 s:^\([^%].*\)::
 s:%lang(C) ::
-s:^\$::' | egrep -v '^$' > $MO_NAME
+s:^\$::' | egrep -v '^$' >> $MO_NAME
 
 find $TOP_DIR -type d|sed '
 s:'"$TOP_DIR"'::
This page took 0.033118 seconds and 4 git commands to generate.