aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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