You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.4 KiB
58 lines
1.4 KiB
18 years ago
|
# --- T2-COPYRIGHT-NOTE-BEGIN ---
|
||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||
|
#
|
||
|
# T2 SDE: package/.../xjdic23/xjdic23.conf
|
||
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
||
|
# Copyright (C) 1998 - 2003 Clifford Wolf
|
||
|
#
|
||
|
# More information can be found in the files COPYING and README.
|
||
|
#
|
||
|
# This program is free software; you can redistribute it and/or modify
|
||
|
# it under the terms of the GNU General Public License as published by
|
||
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
||
|
# GNU General Public License can be found in the file COPYING.
|
||
|
# --- T2-COPYRIGHT-NOTE-END ---
|
||
|
|
||
|
if [ $prefix_auto = 1 ] ; then
|
||
|
prefix="opt/xjdic"
|
||
|
set_confopt
|
||
|
fi
|
||
|
|
||
|
xjdic_pc() {
|
||
|
for x in edict kanjidic; do
|
||
|
bunzip2 -c `match_source_file -p $x` > $x
|
||
|
done
|
||
|
}
|
||
|
|
||
|
xjdic_pm() {
|
||
|
./xjdxgen edict
|
||
|
./xjdxgen kanjidic
|
||
|
|
||
|
mv -v exjdxgen xjdic_cl xjdic_sa xjdserver xjdxgen edict edict.xjdx \
|
||
|
kanjidic kanjidic.xjdx gnu_licence \
|
||
|
kanjstroke radicals.tm vconj radkfile romkana.cnv $bindir/
|
||
|
cat > $bindir/xjdic << EOF
|
||
|
cd $bindir
|
||
|
./xjdic_sa
|
||
|
EOF
|
||
|
cat > $bindir/xjdic_client << EOF
|
||
|
cd $bindir
|
||
|
./xjdic_cl
|
||
|
EOF
|
||
|
cat > $bindir/xjdic_server << EOF
|
||
|
cd $bindir
|
||
|
./xjdserver
|
||
|
EOF
|
||
|
cat > $bindir/xjdic_indexgen << EOF
|
||
|
cd $bindir
|
||
|
./xjdxgen
|
||
|
EOF
|
||
|
chmod a+x $bindir/{xjdic,xjdic_client,xjdic_server,xjdic_indexgen}
|
||
|
}
|
||
|
|
||
|
srcdir="."
|
||
|
makeinstopt=""
|
||
|
hook_add preconf 5 xjdic_pc
|
||
|
hook_add postmake 5 xjdic_pm
|
||
|
|