OpenSDE Packages Database (without history before r20070)
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.

57 lines
1.4 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../xjdic23/xjdic23.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- T2-COPYRIGHT-NOTE-END ---
  15. if [ $prefix_auto = 1 ] ; then
  16. prefix="opt/xjdic"
  17. set_confopt
  18. fi
  19. xjdic_pc() {
  20. for x in edict kanjidic; do
  21. bunzip2 -c `match_source_file -p $x` > $x
  22. done
  23. }
  24. xjdic_pm() {
  25. ./xjdxgen edict
  26. ./xjdxgen kanjidic
  27. mv -v exjdxgen xjdic_cl xjdic_sa xjdserver xjdxgen edict edict.xjdx \
  28. kanjidic kanjidic.xjdx gnu_licence \
  29. kanjstroke radicals.tm vconj radkfile romkana.cnv $bindir/
  30. cat > $bindir/xjdic << EOF
  31. cd $bindir
  32. ./xjdic_sa
  33. EOF
  34. cat > $bindir/xjdic_client << EOF
  35. cd $bindir
  36. ./xjdic_cl
  37. EOF
  38. cat > $bindir/xjdic_server << EOF
  39. cd $bindir
  40. ./xjdserver
  41. EOF
  42. cat > $bindir/xjdic_indexgen << EOF
  43. cd $bindir
  44. ./xjdxgen
  45. EOF
  46. chmod a+x $bindir/{xjdic,xjdic_client,xjdic_server,xjdic_indexgen}
  47. }
  48. srcdir="."
  49. makeinstopt=""
  50. hook_add preconf 5 xjdic_pc
  51. hook_add postmake 5 xjdic_pm