# HG changeset patch # User Kenichi Handa # Date 1083386151 0 # Node ID 181520e900b23db9d358eb6096e05298db082fc7 # Parent 15b13b66182b8bd7c98234da5ceb66dfe7af491e (miscdic-convert): Don't generate a quail file if it is up to date. diff -r 15b13b66182b -r 181520e900b2 lisp/international/titdic-cnv.el --- a/lisp/international/titdic-cnv.el Sat May 01 04:03:28 2004 +0000 +++ b/lisp/international/titdic-cnv.el Sat May 01 04:35:51 2004 +0000 @@ -1113,21 +1113,25 @@ name title dicfile coding quailfile converter copyright dicbuf) (while tail - (when (or (string-match (nth 2 (car tail)) filename) - ;; MS-DOS filesystem truncates file names to 8+3 - ;; limits, so "cangjie-table.cns" becomes - ;; "cangjie-.cns", and the above string-match fails. - ;; Give DOS users a chance... - (and (fboundp 'msdos-long-file-names) - (not (msdos-long-file-names)) - (string-match (dos-8+3-filename (nth 2 (car tail))) - filename))) - (setq slot (car tail) - name (car slot) + (setq slot (car tail) + dicfile (nth 2 slot) + quailfile (nth 4 slot)) + (when (and (or (string-match dicfile filename) + ;; MS-DOS filesystem truncates file names to 8+3 + ;; limits, so "cangjie-table.cns" becomes + ;; "cangjie-.cns", and the above string-match + ;; fails. Give DOS users a chance... + (and (fboundp 'msdos-long-file-names) + (not (msdos-long-file-names)) + (string-match (dos-8+3-filename dicfile) filename))) + (if (file-newer-than-file-p + filename (expand-file-name quailfile dirname)) + t + (message "%s is up to date" quailfile) + nil)) + (setq name (car slot) title (nth 1 slot) - dicfile (nth 2 slot) coding (nth 3 slot) - quailfile (nth 4 slot) converter (nth 5 slot) copyright (nth 6 slot)) (message "Converting %s to %s..." dicfile quailfile)