find-lang Qt translation support (Ville Skyttä)

This commit is contained in:
Panu Matilainen 2007-10-14 12:48:32 +03:00
parent 5656af9cf3
commit c7b8053f46
1 changed files with 14 additions and 0 deletions

View File

@ -32,6 +32,7 @@ to \$3.
Additional options:
--with-gnome find GNOME help files
--with-kde find KDE help files
--with-qt find Qt translation files
--with-man find localized man pages
--all-name match all package/domain names
--without-mo do not find locale files
@ -55,6 +56,7 @@ shift
GNOME=#
KDE=#
QT=#
MAN=#
MO=
MO_NAME=$NAME.lang
@ -71,6 +73,10 @@ while test $# -gt 0 ; do
KDE=
shift
;;
--with-qt )
QT=
shift
;;
--with-man )
MAN=
shift
@ -136,6 +142,14 @@ s:^\([^%].*\)::
s:%lang(C) ::
/^$/d' >> $MO_NAME
find $TOP_DIR -type f -o -type l|sed '
s:'"$TOP_DIR"'::
'"$NO_ALL_NAME$QT"'s:\(.*/'"$NAME"'_\([^/.]\+\)\.qm$\):%lang(\2) \1:
'"$ALL_NAME$QT"'s:\(.*[/_]\([^/_]\+\)\.qm$\):%lang(\2) \1:
s:^[^%].*::
s:%lang(C) ::
/^$/d' >> $MO_NAME
find $TOP_DIR -type d|sed '
s:'"$TOP_DIR"'::
'"$ALL_NAME$MAN"'s:\(.*/man/\([^/_]\+\).*/man[a-z0-9]\+/\)::