diff options
author | Frederic Lepied <flepied@mandriva.com> | 2004-01-27 16:55:52 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2004-01-27 16:55:52 +0000 |
commit | 1fcc6310a5109bfaaa5023b8d6d1d454c20e0550 (patch) | |
tree | 0e3f3a47200a4977ea5250be717c00c8f9fef656 | |
parent | b1e46640724c7cfb702f40c56b05dd10962ac55c (diff) | |
download | spec-helper-1fcc6310a5109bfaaa5023b8d6d1d454c20e0550.tar spec-helper-1fcc6310a5109bfaaa5023b8d6d1d454c20e0550.tar.gz spec-helper-1fcc6310a5109bfaaa5023b8d6d1d454c20e0550.tar.bz2 spec-helper-1fcc6310a5109bfaaa5023b8d6d1d454c20e0550.tar.xz spec-helper-1fcc6310a5109bfaaa5023b8d6d1d454c20e0550.zip |
call translate_menu.pl
-rwxr-xr-x | spec-helper | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec-helper b/spec-helper index ee9f238..c29e754 100755 --- a/spec-helper +++ b/spec-helper @@ -23,7 +23,7 @@ export PATH # usage usage() { - echo "usage: spec-helper [-l|-c|-m|-s|-L|-g|-p|-i|-mo]" 1>&2 + echo "usage: spec-helper [-l|-c|-m|-s|-L|-g|-p|-i|-mo|-M]" 1>&2 echo "-c don't clean up files" 1>&2 echo "-m don't compress files" 1>&2 echo "-s don't strip files" 1>&2 @@ -33,6 +33,7 @@ usage() { echo "-p don't fix pam.d configs." 1>&2 echo "-i don't delete info dir." 1>&2 echo "-mo don't fix bad translations." 1>&2 + echo "-M don't translate menus." 1>&2 } # handle options @@ -47,6 +48,7 @@ while [ $# != 0 ]; do -p) DONT_FIX_PAMD_CONFIGS=1;; -i) DONT_REMOVE_INFO_DIR=1;; -mo) DONT_FIX_MO=1;; + -M) DONT_TRANSLATE_MENU=1;; *) usage; exit 1;; esac @@ -89,6 +91,10 @@ if test -z "$DONT_FIX_MO" -a -n "$(ls $RPM_BUILD_ROOT/usr/share/locale/ko/LC_MES echo -n "Fixing translations..." && fix-mo && echo done fi +if test -z "$DONT_TRANSLATE_MENU" -a -d $RPM_BUILD_ROOT/usr/lib/menu; then + echo "Translating menus:" && translate_menu.pl $RPM_BUILD_ROOT/usr/lib/menu/* && echo done +fi + exit 0 # spec-helper ends here |