Skip to content

Commit

Permalink
No longer track generated borg.texi
Browse files Browse the repository at this point in the history
That also means that we can use the (updated) {{{version}}} macro again.
  • Loading branch information
tarsius committed Aug 17, 2024
1 parent d422802 commit c46686a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1,276 deletions.
2 changes: 1 addition & 1 deletion docs/.orgconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

#+macro: kbd (eval (let ((case-fold-search nil) (regexp (regexp-opt '("SPC" "RET" "LFD" "TAB" "BS" "ESC" "DELETE" "SHIFT" "Ctrl" "Meta" "Alt" "Cmd" "Super" "UP" "LEFT" "RIGHT" "DOWN") 'words))) (format "@@texinfo:@kbd{@@%s@@texinfo:}@@" (replace-regexp-in-string regexp "@@texinfo:@key{@@\\&@@texinfo:}@@" $1 t))))
#+macro: year (eval (format-time-string "%Y"))
#+macro: version (eval (or (getenv "PACKAGE_REVDESC") (getenv "PACKAGE_VERSION") (ignore-errors (car (process-lines "git" "describe" "--exact"))) (ignore-errors (concat (car (process-lines "git" "describe" (if (getenv "AMEND") "HEAD~" "HEAD"))) "+1"))))
#+macro: version (eval (if-let ((tag (ignore-errors (car (process-lines "git" "describe" "--exact-match"))))) (concat "version " (substring tag 1)) (or (ignore-errors (car (process-lines "git" "describe"))) "version (unknown)")))

#+language: en
4 changes: 2 additions & 2 deletions docs/borg.org
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
#+texinfo_dir_category: Emacs
#+texinfo_dir_title: Borg: (borg).
#+texinfo_dir_desc: Assimilate Emacs packages as Git submodules
#+subtitle: for version 4.0.0
#+subtitle: for {{{version}}}

#+setupfile: .orgconfig

The Borg assimilate Emacs packages as Git submodules. Borg is a
bare-bones package manager for Emacs packages.

#+texinfo: @noindent
This manual is for Borg version 4.0.0.
This manual is for Borg {{{version}}}.

#+texinfo: @insertcopying
:END:
Expand Down
Loading

0 comments on commit c46686a

Please sign in to comment.