2 XCOMM $XConsortium: configLang.src /main/3 1996/04/23 19:33:13 drk $
4 ConfigureBackdropsForLang()
6 if [ ! -d /etc/dt/backdrops/$thelang ]
8 mkdir -p /etc/dt/backdrops/$thelang
13 exec 3< ${build_tree}/cde1/localized/${thelang}/backdrops/backdrops.msg
18 if [ "$SRC" != "" -a "$firstchar" != "!" ]
21 if [ "${tokens[1]}" = "" ]
23 ln -s /usr/dt/backdrops/C/${tokens[0]} \
24 /etc/dt/backdrops/$thelang/${tokens[0]}
26 ln -s /usr/dt/backdrops/C/${tokens[0]} \
27 /etc/dt/backdrops/$thelang/${tokens[1]}
35 ConfigurePalettesForLang()
37 if [ ! -d /etc/dt/palettes/$thelang ]
39 mkdir -p /etc/dt/palettes/$thelang
44 exec 3< ${build_tree}/cde1/localized/${thelang}/palettes/palettes.msg
49 if [ "$SRC" != "" -a "$firstchar" != "!" ]
52 if [ "${tokens[1]}" = "" ]
54 ln -s /usr/dt/palettes/C/${tokens[0]} \
55 /etc/dt/palettes/$thelang/${tokens[0]}
57 ln -s /usr/dt/palettes/C/${tokens[0]} \
58 /etc/dt/palettes/$thelang/${tokens[1]}
66 #include "option.func"
68 XCOMM ##################################################################
72 XCOMM ##################################################################
75 build_tree=${build_tree%/admin/IntegTools/post_install}
79 if [ "$thelang" = "" -o "$thelang" = "-e" -o "$thelang" = "-d" ]
81 echo "Usage: configLang [ -e | -d ] <Lang>"
87 if [ "$OPERATION" = "configure" ]
90 ConfigureBackdropsForLang
91 ConfigurePalettesForLang
93 elif [ "$OPERATION" = "deconfigure" ]
96 rm -rf /etc/dt/backdrops/$thelang
97 rm -rf /etc/dt/palettes/$thelang