org-mode/mk
Kyle Meyer 61336f80dc mk/targets.mk: Add version fallback for tag-less repos
* mk/targets.mk (ORGVERSION, GITVERSION): Get version from lisp/org.el
header if it can't be retrieved from git-describe.

As of elpa.git's ee03829f90 (Finalize the new master branch,
2020-12-14), org-release and org-git-version are empty strings in
https://elpa.gnu.org/packages/org-*.tar files.  This is because the
new setup executes `make autoloads info' in an elpa.git worktree with
an Org branch checked out, but elpa.git of course doesn't have Org's
release tags.

Maintaining the org.el version header has been a point of contention
in the past [1], but the header has been there for a while now.  Use
it to avoid the above elpa.git issue.  In the case of the master
branch, the org-release value generated in a tag-less repo will have a
different version than the one from a regular repo because org.el's
version header has a "-dev" suffix, but that's still better than an
empty version.

[1] For example: https://orgmode.org/list/87zj1uhix6.fsf@gmx.us/

Reported-by: Pierre Langlois <pierre.langlois@gmx.com>
Ref: https://orgmode.org/list/87y2hi9qev.fsf@gmx.com
2021-02-05 01:20:09 -05:00
..
default.mk Include "ol"-prefixed files in the build system 2019-03-10 18:00:36 +01:00
guidesplit.pl Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
manfull.pl Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
mansplit.pl Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
org-fixup.el Use lexical-binding cookie in some trivial files 2021-01-24 22:36:30 -05:00
orgcard2txt.pl Change Org-mode into Org mode 2017-12-31 15:48:09 +01:00
server.mk Fix typos 2020-05-13 23:27:49 -04:00
targets.mk mk/targets.mk: Add version fallback for tag-less repos 2021-02-05 01:20:09 -05:00