summaryrefslogtreecommitdiff
path: root/docs/.orgconfig
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2022-01-21 00:36:31 +0100
committerJonas Bernoulli <jonas@bernoul.li>2022-01-21 00:36:31 +0100
commit15ee0e245868b6da27a81a4c580dfb0dfea6643d (patch)
tree8d6ade3193ed46275cc0fd748bc714b66259bef1 /docs/.orgconfig
parenta4e720b12a0946a271a274bbe0b45ae07f83520b (diff)
manual: Fix version macro and prefer PACKAGE_REVDESC
Diffstat (limited to 'docs/.orgconfig')
-rw-r--r--docs/.orgconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/.orgconfig b/docs/.orgconfig
index 3a00c75..06952a1 100644
--- a/docs/.orgconfig
+++ b/docs/.orgconfig
@@ -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-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 (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"))))
#+language: en