Make ChangeLog conform to conventions better.
[muse-el.git] / scripts / muse-build.el
blobe30bee5340ed861f8cb937c80189b37b1c3d5225
1 (add-to-list 'load-path "../contrib")
2 (add-to-list 'load-path "../experimental")
3 (add-to-list 'load-path "../lisp")
5 (defun muse-elint-files ()
6 (require 'elint)
7 (elint-initialize)
9 (defvar nomessage t)
10 (load "muse" nil nomessage)
11 (dolist (dir '("../lisp" "../contrib" "../experimental"))
12 (dolist (file (directory-files dir nil "\\.el$"))
13 (setq file (substring file 0 (string-match "\\.el$" file)))
14 (load file nil nomessage)))
16 (add-to-list 'elint-standard-variables 'current-prefix-arg)
17 (add-to-list 'elint-standard-variables 'command-line-args-left)
18 (add-to-list 'elint-standard-variables 'buffer-file-coding-system)
19 (add-to-list 'elint-standard-variables 'save-some-buffers-action-alist)
20 (add-to-list 'elint-standard-variables 'emacs-major-version)
21 (add-to-list 'elint-standard-variables 'emacs-minor-version)
22 (add-to-list 'elint-standard-variables 'emacs-version)
23 (add-to-list 'elint-standard-variables 'window-system)
24 (add-to-list 'elint-standard-variables 'muse-mode-abbrev-table)
25 (dolist (file command-line-args-left)
26 (find-file file)
27 (message "Checking %s ..." file)
28 (elint-current-buffer)
29 (with-current-buffer (elint-get-log-buffer)
30 (goto-char (point-min))
31 (forward-line 2)
32 (while (not (or (eobp)
33 (looking-at "^Linting complete")))
34 (message (buffer-substring (muse-line-beginning-position)
35 (muse-line-end-position)))
36 (forward-line 1)))
37 (kill-buffer (current-buffer))))
39 (defun muse-generate-autoloads ()
40 (interactive)
41 (defvar autoload-package-name)
42 (defvar command-line-args-left)
43 (defvar generated-autoload-file)
44 (require 'autoload)
45 (setq backup-inhibited t)
46 (setq generated-autoload-file (expand-file-name "muse-autoloads.el"))
47 (setq command-line-args-left (mapcar #'expand-file-name
48 command-line-args-left))
49 (if (featurep 'xemacs)
50 (progn
51 (setq autoload-package-name "muse")
52 (batch-update-autoloads))
53 (find-file generated-autoload-file)
54 (delete-region (point-min) (point-max))
55 (insert ";;; muse-autoloads.el --- autoloads for Muse
57 ;;; Code:
59 (save-buffer 0)
60 (batch-update-autoloads)
61 (find-file generated-autoload-file)
62 (goto-char (point-max))
63 (insert ?\n)
64 (insert "(provide 'muse-autoloads)
65 ;;; muse-autoloads.el ends here
67 ;; Local Variables:
68 ;; version-control: never
69 ;; no-byte-compile: t
70 ;; no-update-autoloads: t
71 ;; End:
73 (insert ?\n)
74 (save-buffer 0)
75 (kill-buffer (current-buffer))))