blob: aa52c4e88d69920aa171ae12f7ad3b60a8c0befa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
if [ "$2" != "POST-INSTALL" ]; then exit 0; fi
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib
cd /usr/local/bin; rm -f Wnn6; ln -s ${PKG_PREFIX}/OMRONWnn6/Wnn6fbsd Wnn6
cd /usr/local/lib; rm -f wnn6; ln -s ${PKG_PREFIX}/OMRONWnn6/wnn6fbsd wnn6
cd ${PKG_PREFIX}/OMRONWnn6/wnn6fbsd/ja_JP; rm -f dic; ln -s ../../wnn6dic dic
chown -R 127.bin ${PKG_PREFIX}/OMRONWnn6
echo "######################################################################"
echo "Execute ${PKG_PREFIX}/OMRONWnn6/setup.sh for startup configuration."
if [ X${PKG_PREFIX} != X"/usr/local" ]; then
echo
echo "Warning!!"
echo "We made symbolic links from \"/usr/local/bin/Wnn6\" to \"${PKG_PREFIX}/OMRONWnn6/Wnn6fbsd\""
echo "and from \"/usr/local/lib/wnn6\" to \"${PKG_PREFIX}/OMRONWnn6/wnn6fbsd\""
fi
echo "######################################################################"
|