Skip to content

Commit

Permalink
sisyphus--bump-version-org: Replace argument of version macro
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Aug 20, 2024
1 parent 96cd196 commit 6020213
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sisyphus.el
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,9 @@ With prefix argument NOCOMMIT, do not create a commit."

(defun sisyphus--bump-version-org (file version)
(sisyphus--with-file file
(re-search-forward "^#\\+subtitle: for version \\(.+\\)$")
(replace-match version t t nil 1)
(re-search-forward "^This manual is for [^ ]+ version \\(.+\\)\\.$")
(replace-match version t t nil 1)))
(while (re-search-forward "{{{version(\\([^)]+\\))}}}" nil t)
(replace-match version t t nil 1)
(setq modified t))))

(defun sisyphus--bump-copyright ()
(pcase-let ((`(,libs ,_ ,orgs) (sisyphus--list-files)))
Expand Down

0 comments on commit 6020213

Please sign in to comment.