# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/*/xjdic23/xjdic23.conf # Copyright (C) 2004 - 2016 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # 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 $compressor -d < `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