Tomotaka SUWA
t-suw****@users*****
2006年 3月 16日 (木) 00:33:30 JST
Index: AquaSKK/Package/scripts/postflight
diff -u AquaSKK/Package/scripts/postflight:1.1.2.3 AquaSKK/Package/scripts/postflight:1.1.2.4
--- AquaSKK/Package/scripts/postflight:1.1.2.3 Sat Feb 25 16:27:33 2006
+++ AquaSKK/Package/scripts/postflight Thu Mar 16 00:33:30 2006
@@ -5,6 +5,11 @@
PREF=~/Library/Preferences
ASKK=~/Library/AquaSKK
+if [ ! -d $ASKK ]; then
+ mkdir -p $ASKK
+ chown $USER $ASKK
+fi
+
###
### generate new user defaults
###
@@ -75,23 +80,33 @@
if [ -z $SUB_PATH ]; then
SUB_PATH=~/.skk-jisyo
fi
+cat >>$DIC_PLIST<<EOF
+ <dict>
+ <key>active</key>
+ <true/>
+ <key>location</key>
+ <string>${SUB_PATH}</string>
+ <key>type</key>
+ <integer>10</integer>
+ </dict>
+EOF
if [ -z $MAIN_PATH ]; then
- MAIN_PATH=~/Library/AquaSKK/SKK-JISYO.L
+ MAIN_PATH=SKK-JISYO.L
+ DICT_TYPE=11
+else
+ DICT_TYPE=10
fi
-
-for path in $SUB_PATH $MAIN_PATH; do
cat >>$DIC_PLIST<<EOF
<dict>
<key>active</key>
<true/>
<key>location</key>
- <string>${path}</string>
+ <string>${MAIN_PATH}</string>
<key>type</key>
- <integer>10</integer>
+ <integer>${DICT_TYPE}</integer>
</dict>
EOF
-done
# kotoeri dictionary
for path in $KOTOERI_PATH; do