]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- fix --all-name (thx Grzegorz Goławski for pointing it out) auto/ac/rpm-4_4_2-37 auto/th/rpm-4_4_6-1_12 auto/th/rpm-4_4_6-1_14 auto/th/rpm-4_4_6-1_16 auto/th/rpm-4_4_6-1_17 auto/th/rpm-4_4_6-1_18 auto/th/rpm-4_4_6-1_19 auto/th/rpm-4_4_6-1_20 auto/th/rpm-4_4_6-1_21 auto/th/rpm-4_4_7-0_1 auto/th/rpm-4_4_7-0_2
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 28 Aug 2006 18:45:30 +0000 (18:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-find-lang -> 1.13

rpm-find-lang

index 62d6937838312f5aa96668ebdc2fb8616d633ffb..16d73a77c5785b52da63156283ad75743314d832 100644 (file)
@@ -13,6 +13,8 @@
 
 #changes:
 # $Id$
+# 2006-08-28 Elan Ruusamäe <glen@pld-linux.org>
+#   * fixed --all-name which got broken with last change.
 # 2006-08-09 Elan Ruusamäe <glen@pld-linux.org>
 #   * huge performance boost for packages calling %find_lang multiple times (kde*i18n)
 # 2001-01-08 Micha³ Kochanowicz <mkochano@pld.org.pl>
@@ -111,7 +113,7 @@ if [ ! -f __find.files ]; then
                s:'"$TOP_DIR"'::' > __find.files
 fi
 
-fgrep $NAME __find.files | sed '
+{ [ "$ALL_NAME" ] || cat __find.files && fgrep $NAME __find.files; } | sed '
 '"$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:^\([^%].*\)::
@@ -121,7 +123,7 @@ s:^\$::' | egrep -v '^$' >> $MO_NAME
 if [ ! -f __find.dirs ]; then
        find $TOP_DIR -type d | sed 's:'"$TOP_DIR"'::' > __find.dirs
 fi
-fgrep $NAME __find.dirs | sed '
+{ [ "$ALL_NAME" ] || cat __find.dirs && fgrep $NAME __find.dirs; } | sed '
 '"$NO_ALL_NAME$GNOME"'s:\(.*/gnome/help/'"$NAME"'$\):%dir \1:
 '"$NO_ALL_NAME$GNOME"'s:\(.*/gnome/help/'"$NAME"'/[a-zA-Z0-9.\_\-]/.\+\)::
 '"$NO_ALL_NAME$GNOME"'s:\(.*/gnome/help/'"$NAME"'\/\)\([^/]\+\):%lang(\2) \1\2:
@@ -132,7 +134,7 @@ s:%lang(.*) .*/gnome/help/[a-zA-Z0-9.\_\-]\+/[a-zA-Z0-9.\_\-]\+/.*::
 s:^\([^%].*\)::
 s:%lang(C) ::' | egrep -v '^$' >> $MO_NAME
 
-fgrep $NAME __find.dirs | sed '
+{ [ "$ALL_NAME" ] || cat __find.dirs && fgrep $NAME __find.dirs; } | 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.048441 seconds and 4 git commands to generate.