aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2003-02-14 08:09:17 +0000
committerFrederic Lepied <flepied@mandriva.com>2003-02-14 08:09:17 +0000
commitfac4880ebe4948b8ab22643ea5b948c0bbda5387 (patch)
treec298414133a8fa2be6a2df910a1c043d02e34258
parent73f922fd00a5a26fb0a94da2edd823237020138d (diff)
downloadspec-helper-fac4880ebe4948b8ab22643ea5b948c0bbda5387.tar
spec-helper-fac4880ebe4948b8ab22643ea5b948c0bbda5387.tar.gz
spec-helper-fac4880ebe4948b8ab22643ea5b948c0bbda5387.tar.bz2
spec-helper-fac4880ebe4948b8ab22643ea5b948c0bbda5387.tar.xz
spec-helper-fac4880ebe4948b8ab22643ea5b948c0bbda5387.zip
add fi-mo call
-rwxr-xr-xspec-helper6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec-helper b/spec-helper
index 18d216f..a87dedc 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]" 1>&2
+ echo "usage: spec-helper [-l|-c|-m|-s|-L|-g|-p|-i|-mo]" 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
@@ -32,6 +32,7 @@ usage() {
echo "-g don't grpintify init scripts." 1>&2
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
}
# handle options
@@ -45,6 +46,7 @@ while [ $# != 0 ]; do
-g) DONT_GPRINTIFY=1;;
-p) DONT_FIX_PAMD_CONFIGS=1;;
-i) DONT_REMOVE_INFO_DIR=1;;
+ -mo) DONT_FIX_MO=1;;
*) usage; exit 1;;
esac
@@ -87,6 +89,8 @@ if test -z "$DONT_REMOVE_INFO_DIR" -a -f $dir -a ! -L $dir; then
echo -n "Removing info dir..." && rm -f $dir && echo done
fi
+if test -z "$DONT_FIX_MO" -a -n "$(ls $RPM_BUILD_ROOT/usr/share/locale/ko/LC_MESSAGES/*.mo 2> /dev/null)"; then
+ echo -n "Fixing translations..." && fix-mo && echo done
exit 0
# spec-helper ends here