Commit 1a3cbf35 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

Mostly re-written to generate all MULE-*.map files.

parent e7ff9e24
......@@ -19,11 +19,9 @@
;; along with GNU Emacs. If not, see <>.
(if (or (< emacs-major-version 21)
(< emacs-minor-version 3)
(and (= emacs-minor-version 3)
(string< emacs-version "21.3.50")))
(error "Use Emacs of version 21.3.50 or later"))
(if (not (or (and (= emacs-major-version 21) (= emacs-minor-version 4))
(= emacs-major-version 22)))
(error "Use Emacs of version 21.4 or any of version 22"))
(defun func (start end)
(while (<= start end)
......@@ -45,15 +43,15 @@
("" . vietnamese-viscii-lower)
("" . vietnamese-viscii-upper)))
(setq file (car command-line-args-left))
(or (stringp file)
(error "Invalid file name: %s" file))
(setq charset (cdr (assoc file charset-alist)))
(or charset
(error "Invalid charset: %s" (car command-line-args-left)))
(defconst header
"# Generated by running amdin/charsets/mule-charsets.el in Emacs %d.%d.\n"
emacs-major-version emacs-minor-version))
(map-charset-chars 'func charset)
(write-file file))
(dolist (elt charset-alist)
(insert header)
(map-charset-chars 'func (cdr elt))
(write-file (car elt))))
;;; arch-tag: 515989d7-2e2d-41cc-9163-05ad472fede4
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment