summaryrefslogtreecommitdiff
path: root/setup_native/scripts/javaloader.sh
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-10-29 13:27:59 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-10-29 13:27:59 +0000
commit73ca98a73e3a2d184e3328fd17f0b0771e4b7e7f (patch)
tree55e18eb3a6e24dad6e12635baeb2a4604792c8ef /setup_native/scripts/javaloader.sh
parent5f3cff6c62c0b3d83381c65d39c71b450cf0bce8 (diff)
CWS-TOOLING: integrate CWS native201_DEV300
Diffstat (limited to 'setup_native/scripts/javaloader.sh')
-rw-r--r--setup_native/scripts/javaloader.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/setup_native/scripts/javaloader.sh b/setup_native/scripts/javaloader.sh
index 1bd7e5101e1a..22b1eb927625 100644
--- a/setup_native/scripts/javaloader.sh
+++ b/setup_native/scripts/javaloader.sh
@@ -313,13 +313,19 @@ install_linux_rpm()
java_runtime=$tempdir/$javahome/bin/java
# Make symbolic links to all TrueType font files installed in the system
- # to avoid garbles for Japanese
- language=`printenv LANG | cut -c 1-5`
- if [ x$language = "xja_JP" ]; then
+ # to avoid garbles for Japanese, Korean or Chinese
+ language=`printenv LANG | cut -c 1-3`
+ if [ x$language = "xja_" -o x$language = "xko_" -o x$language = "xzh_" ]; then
font_fallback_dir=$javahome/lib/fonts/fallback
echo "Making symbolic links to TrueType font files into $font_fallback_dir."
mkdir -p $font_fallback_dir
ttf_files=`locate "*.ttf" | xargs`
+ if [ x$ttf_files = "x" ]; then
+ ttf_files=`find /usr/share/fonts/ -name "*ttf"`
+ if [ x$ttf_files = "x" ]; then
+ ttf_files=`find /usr/X11R6/lib/ -name "*ttf"`
+ fi
+ fi
ln -s $ttf_files $font_fallback_dir
fi