diff options
| author | Glenn Morris | 2017-05-09 21:31:46 -0400 |
|---|---|---|
| committer | Glenn Morris | 2017-05-09 21:31:46 -0400 |
| commit | 8452db040905a7de460f8ff2c8b1dda28eed737c (patch) | |
| tree | 8839a7eb8b52025a6e1e1967b3baf83eaf47850a /admin | |
| parent | e7b6751c0a74f24c14cd207d57a4e1a95f409256 (diff) | |
| download | emacs-8452db040905a7de460f8ff2c8b1dda28eed737c.tar.gz emacs-8452db040905a7de460f8ff2c8b1dda28eed737c.zip | |
Put license information in each generated uni-*.el
* admin/unidata/unidata-gen.el (unidata-gen-file):
Get Copyright line from copyright.html.
Put information in file header, not separate README.
(unidata-gen-charprop): Mention the source location.
* lisp/international/README: Remove file.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/unidata/unidata-gen.el | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/admin/unidata/unidata-gen.el b/admin/unidata/unidata-gen.el index 64e2babd4b9..e1e896ce29c 100644 --- a/admin/unidata/unidata-gen.el +++ b/admin/unidata/unidata-gen.el | |||
| @@ -1401,19 +1401,26 @@ Property value is a symbol `o' (Open), `c' (Close), or `n' (None)." | |||
| 1401 | data-dir (or (pop command-line-args-left) default-directory) | 1401 | data-dir (or (pop command-line-args-left) default-directory) |
| 1402 | unidata-text-file (or (pop command-line-args-left) | 1402 | unidata-text-file (or (pop command-line-args-left) |
| 1403 | (expand-file-name "unidata.txt")))) | 1403 | (expand-file-name "unidata.txt")))) |
| 1404 | (let ((coding-system-for-write 'utf-8-unix) | 1404 | (let* ((coding-system-for-write 'utf-8-unix) |
| 1405 | (coding-system-for-read 'utf-8) | 1405 | (coding-system-for-read 'utf-8) |
| 1406 | (unidata-dir data-dir)) | 1406 | (unidata-dir data-dir) |
| 1407 | (copyright (with-temp-buffer | ||
| 1408 | (insert-file-contents | ||
| 1409 | (expand-file-name "copyright.html" unidata-dir)) | ||
| 1410 | (re-search-forward "^Copyright .*Unicode, Inc.") | ||
| 1411 | (match-string 0)))) | ||
| 1407 | (or unidata-list (unidata-setup-list unidata-text-file)) | 1412 | (or unidata-list (unidata-setup-list unidata-text-file)) |
| 1408 | (let* ((basename (file-name-nondirectory file)) | 1413 | (let* ((basename (file-name-nondirectory file)) |
| 1409 | (elt (assoc basename unidata-file-alist))) | 1414 | (elt (assoc basename unidata-file-alist))) |
| 1410 | (or elt (user-error "Unknown output file: %s" basename)) | 1415 | (or elt (user-error "Unknown output file: %s" basename)) |
| 1411 | (or noninteractive (message "Generating %s..." file)) | 1416 | (or noninteractive (message "Generating %s..." file)) |
| 1412 | (with-temp-file file | 1417 | (with-temp-file file |
| 1413 | (insert ";; Copyright (C) 1991-2014 Unicode, Inc. | 1418 | (insert ";; " copyright " |
| 1414 | ;; This file was generated from the Unicode data files at | 1419 | ;; Generated from Unicode data files by unidata-gen.el. |
| 1415 | ;; http://www.unicode.org/Public/UNIDATA/. | 1420 | ;; The sources for this file are found in the admin/unidata/ directory in |
| 1416 | ;; See lisp/international/README for the copyright and permission notice.\n") | 1421 | ;; the Emacs sources. The Unicode data files are used under the |
| 1422 | ;; Unicode Terms of Use, as contained in the file copyright.html in that | ||
| 1423 | ;; same directory.\n") | ||
| 1417 | (dolist (proplist (cdr elt)) | 1424 | (dolist (proplist (cdr elt)) |
| 1418 | (let ((prop (unidata-prop-prop proplist)) | 1425 | (let ((prop (unidata-prop-prop proplist)) |
| 1419 | (index (unidata-prop-index proplist)) | 1426 | (index (unidata-prop-index proplist)) |
| @@ -1443,7 +1450,8 @@ Property value is a symbol `o' (Open), `c' (Close), or `n' (None)." | |||
| 1443 | (defun unidata-gen-charprop (&optional charprop-file) | 1450 | (defun unidata-gen-charprop (&optional charprop-file) |
| 1444 | (or charprop-file (setq charprop-file (pop command-line-args-left))) | 1451 | (or charprop-file (setq charprop-file (pop command-line-args-left))) |
| 1445 | (with-temp-file charprop-file | 1452 | (with-temp-file charprop-file |
| 1446 | (insert ";; Automatically generated by unidata-gen.el.\n") | 1453 | (insert ";; Automatically generated by unidata-gen.el.\n" |
| 1454 | ";; See the admin/unidata/ directory in the Emacs sources.\n") | ||
| 1447 | (dolist (elt unidata-file-alist) | 1455 | (dolist (elt unidata-file-alist) |
| 1448 | (dolist (proplist (cdr elt)) | 1456 | (dolist (proplist (cdr elt)) |
| 1449 | (insert (format "(define-char-code-property '%S %S\n %S)\n" | 1457 | (insert (format "(define-char-code-property '%S %S\n %S)\n" |