diff options
| author | Axel Forsman <axelsfor@gmail.com> | 2023-04-23 16:49:45 +0200 |
|---|---|---|
| committer | Axel Forsman <axelsfor@gmail.com> | 2023-07-05 08:50:54 +0200 |
| commit | 953cf213dca27af9041d0176e1ef321fe1d6f192 (patch) | |
| tree | 868f33347d58498d9c960fe50db9675fb4411026 /scripts | |
| parent | 2a0f8d8a83a57311c62e0597ace6992aa5992f12 (diff) | |
Generate docstringdb.json at build time
Closes #1544. Note that the generated Texinfo file cannot be removed as
it is built by Sphinx which is not available during ELPA package builds.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/evil-extract-docstrings | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/evil-extract-docstrings b/scripts/evil-extract-docstrings index 41307f2..ed72109 100755 --- a/scripts/evil-extract-docstrings +++ b/scripts/evil-extract-docstrings @@ -1,8 +1,8 @@ -#!/usr/bin/emacs --script +#!/usr/bin/env -S emacs --script (setq cur-path (file-name-directory load-file-name)) -(add-to-list 'load-path (format "%s.." cur-path)) +(add-to-list 'load-path (expand-file-name ".." cur-path)) (require 'evil) (require 'json) (require 'help) @@ -28,7 +28,7 @@ (push (cons func (key-description (where-is-internal func map t))) bindings))) bindings)) -(with-temp-file (format "%s../doc/docstringdb.json" cur-path) +(with-temp-file (expand-file-name "../doc/docstringdb.json" cur-path) (let (vars) (mapatoms (lambda (sym) |
