aboutsummaryrefslogtreecommitdiff
blob: 117edbd43b712d5e2948e88f805549ff68d7e85e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Regenerate Japanese dictionary with --with-small-ja-dic option
Patch from emacs-29 branch
https://debbugs.gnu.org/66125

Also update the following generated files:
* leim/small-ja-dic-option
* lisp/leim/ja-dic/ja-dic.{el,elc}

commit 7d5fee0feaa5740f3fbbfc6d5f13855bf58b9c25
Author: Eli Zaretskii <eliz@gnu.org>
Date:   Sun Sep 24 15:30:01 2023 +0300

    Support regeneration of ja-dic.el under '--with-small-ja-dic'

--- a/.gitignore
+++ b/.gitignore
@@ -95,6 +95,7 @@ lisp/cedet/semantic/grammar-wy.el
 lisp/eshell/esh-groups.el
 lisp/finder-inf.el
 lisp/leim/ja-dic/
+leim/small-ja-dic-option
 lisp/leim/leim-list.el
 lisp/leim/quail/4Corner.el
 lisp/leim/quail/ARRAY30.el
--- a/leim/Makefile.in
+++ b/leim/Makefile.in
@@ -26,6 +26,7 @@ SHELL =
 # Here are the things that we expect ../configure to edit.
 srcdir=@srcdir@
 top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
 
 # Where the generated files go.
 leimdir = ${srcdir}/../lisp/leim
@@ -134,9 +135,15 @@ ${leimdir}/leim-list.el:
 
 ${leimdir}/ja-dic/ja-dic.el: | $(leimdir)/ja-dic
 
+# This is used to support regeneration of ja-dic when the SMALL_JA_DIC
+# option is flipped by the configure-time option.
+small-ja-dic-option: ../config.status
+	$(AM_V_GEN)echo "Small ja-dic option: $(SMALL_JA_DIC)" > $@.$$$$ && \
+	  ${top_srcdir}/build-aux/move-if-change $@.$$$$ $@
+
 .PHONY: generate-ja-dic
 generate-ja-dic: ${leimdir}/ja-dic/ja-dic.el
-${leimdir}/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L
+${leimdir}/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L small-ja-dic-option
 	$(AM_V_GEN)$(RUN_EMACS) -batch -l ja-dic-cnv \
 	  -f batch-skkdic-convert -dir "$(leimdir)/ja-dic" $(JA_DIC_NO_REDUCTION_OPTION) "$<"
 
--- a/lisp/international/ja-dic-cnv.el
+++ b/lisp/international/ja-dic-cnv.el
@@ -346,6 +346,8 @@ skkdic-convert
       (erase-buffer)
       (buffer-disable-undo)
       (generate-lisp-file-heading ja-dic-filename 'skkdic-convert :code nil)
+      (insert (format ";; Generated with small ja-dic option: %s\n\n"
+                      (if no-reduction "no" "yes")))
       (insert ";; Original SKK dictionary file: "
 	      (file-relative-name (expand-file-name filename) dirname)
 	      "\n\n"
--- a/make-dist
+++ b/make-dist
@@ -357,6 +357,7 @@ possibly_non_vc_files=
   MANIFEST aclocal.m4 configure
   admin/charsets/jisx2131-filter
   src/config.in
+  leim/small-ja-dic-option
 "$(
   find admin doc etc lisp \
    \( -name '*.el' -o -name '*.elc' -o -name '*.map' -o -name '*.stamp' \
--- /dev/null
+++ b/leim/small-ja-dic-option
@@ -0,0 +1 @@
+Small ja-dic option: no
--- a/lisp/leim/ja-dic/ja-dic.el
+++ b/lisp/leim/ja-dic/ja-dic.el
@@ -3,6 +3,8 @@
 
 ;; This file is part of GNU Emacs.
 
+;; Generated with small ja-dic option: no
+
 ;; Original SKK dictionary file: ../../../leim/SKK-DIC/SKK-JISYO.L
 
 ;;; Start of the header of the original SKK dictionary.
--- a/lisp/leim/ja-dic/ja-dic.elc
+++ b/lisp/leim/ja-dic/ja-dic.elc
@@ -5,1 +5,1 @@
-
+