]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- use if statement to increase readability auto/ac/rpm-4_4_2-39 auto/ac/rpm-4_4_2-40 auto/ac/rpm-4_4_2-41 auto/th/rpm-4_4_7-10 auto/th/rpm-4_4_7-11 auto/th/rpm-4_4_7-12 auto/th/rpm-4_4_7-5 auto/th/rpm-4_4_7-6 auto/th/rpm-4_4_7-6_1 auto/th/rpm-4_4_7-7 auto/th/rpm-4_4_7-8 auto/th/rpm-4_4_7-9 rpm-4_4_7-13
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 12 Jan 2007 20:23:49 +0000 (20:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-find-lang -> 1.16

rpm-find-lang

index 8d996b85e6a6dea30f4d4926a74ce6a158150854..c89b4b49029cd5530a7914e138bdf342d00a7999 100644 (file)
@@ -147,7 +147,13 @@ s:%lang(.*) .*/gnome/help/[a-zA-Z0-9.\_\-]\+/[a-zA-Z0-9.\_\-]\+/.*::
 s:^\([^%].*\)::
 s:%lang(C) ::' | egrep -v '^$' >> $MO_NAME
 
-{ [ "$ALL_NAME" ] || cat __find.dirs && fgrep $NAME __find.dirs; } | sed '
+(
+       if [ "$ALL_NAME" ]; then
+               fgrep $NAME __find.dirs
+       else
+               cat __find.dirs
+       fi
+) | sed '
 '"$NO_ALL_NAME$KDE"'s:\(.*/doc/kde/HTML/\)\([^/_]\+\)\(.*/'"$NAME"'/\)::
 '"$NO_ALL_NAME$KDE"'s:\(.*/doc/kde/HTML/\)\([^/_]\+\)\(.*/'"$NAME"'\)$:%lang(\2) \1\2\3:
 '"$ALL_NAME$KDE"'s:\(.*/doc/kde/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+/\)::
This page took 0.041405 seconds and 4 git commands to generate.