teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame rpm-4.4.2.1-findlang-omf.patch

Panu Matilainen a836ad
changeset:   6304:03206d67072c
Panu Matilainen a836ad
tag:         tip
Panu Matilainen a836ad
user:        Panu Matilainen <pmatilai@redhat.com>
Panu Matilainen a836ad
date:        Wed Aug 15 12:07:31 2007 +0300
Panu Matilainen a836ad
files:       scripts/find-lang.sh
Panu Matilainen a836ad
description:
Panu Matilainen a836ad
Make find-lang.sh --with-gnome pick up omf files (rhbz#251400)
Panu Matilainen a836ad
Patch from Matthias Clasen.
Panu Matilainen a836ad
Panu Matilainen a836ad
Panu Matilainen a836ad
diff -r 7f45c685a512 -r 03206d67072c scripts/find-lang.sh
Panu Matilainen a836ad
--- a/scripts/find-lang.sh	Wed Aug 15 09:12:25 2007 +0200
Panu Matilainen a836ad
+++ b/scripts/find-lang.sh	Wed Aug 15 12:07:31 2007 +0300
Panu Matilainen a836ad
@@ -106,6 +106,14 @@ s:%lang(C) ::
Panu Matilainen a836ad
 s:%lang(C) ::
Panu Matilainen a836ad
 /^$/d' >> $MO_NAME
Panu Matilainen a836ad
 
Panu Matilainen a836ad
+find $TOP_DIR -type f|sed '
Panu Matilainen a836ad
+s:'"$TOP_DIR"'::
Panu Matilainen a836ad
+'"$NO_ALL_NAME$GNOME"'s:\(.*/omf/'"$NAME"'/'"$NAME"'-\([^/.]\+\).omf\):%lang(\2) \1:
Panu Matilainen a836ad
+'"$ALL_NAME$GNOME"'s:\(.*/omf/[a-zA-Z0-9.\_\-]\+/[a-zA-Z0-9.\_\-]\+-\([^/.]\+\).omf\):%lang(\2) \1:
Panu Matilainen a836ad
+s:^[^%].*::
Panu Matilainen a836ad
+s:%lang(C) ::
Panu Matilainen a836ad
+/^$/d' >> $MO_NAME
Panu Matilainen a836ad
+
Panu Matilainen a836ad
 find $TOP_DIR -type d|sed '
Panu Matilainen a836ad
 s:'"$TOP_DIR"'::
Panu Matilainen a836ad
 '"$NO_ALL_NAME$KDE"'s:\(.*/doc/kde/HTML/\)\([^/_]\+\)\(.*/'"$NAME"'/\)::
Panu Matilainen a836ad