Own omf directories found by find-lang (rhbz#296731)
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 27 Sep 2007 09:28:30 +0000 (12:28 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 27 Sep 2007 09:28:30 +0000 (12:28 +0300)
scripts/find-lang.sh

index 246bb39..1262eb2 100755 (executable)
@@ -106,6 +106,12 @@ s:^\([^%].*\)::
 s:%lang(C) ::
 /^$/d' >> $MO_NAME
 
+find $TOP_DIR -type d|sed '
+s:'"$TOP_DIR"'::
+'"$NO_ALL_NAME$GNOME"'s:\(.*/omf/'"$NAME"'$\):%dir \1:
+s:^\([^%].*\)::
+/^$/d' >> $MO_NAME
+
 find $TOP_DIR -type f|sed '
 s:'"$TOP_DIR"'::
 '"$NO_ALL_NAME$GNOME"'s:\(.*/omf/'"$NAME"'/'"$NAME"'-\([^/.]\+\).omf\):%lang(\2) \1: