Skip to content

Commit

Permalink
Expose version information using environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Sep 1, 2024
1 parent 4ed6908 commit 2b388e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package-build.el
Original file line number Diff line number Diff line change
Expand Up @@ -1473,8 +1473,11 @@ Return the archive entry for the package and store the package
in `package-build-archive-dir'."
(let ((default-directory (package-build--working-tree rcp)))
(unwind-protect
(progn
(let ((process-environment (copy-sequence process-environment)))
(funcall package-build-checkout-function rcp)
(setenv "PACKAGE_VERSION" (package-build--get-version rcp))
(setenv "PACKAGE_REVISION" (package-build--get-commit rcp))
;; (setenv "PACKAGE_REVDESC" (package-build--get-revdesc rcp))
(when-let ((command (oref rcp shell-command)))
(package-build--message "Running %s" command)
(package-build--run-sandboxed
Expand Down

0 comments on commit 2b388e8

Please sign in to comment.