Change the way to modify lisp/loadup.el.
In this file there are codes that retrieve branch name and commit hash
from source tree. And they implicitly assume that git is installed in
build environment and source tree is retrieved from upstream git
repository by using it. But we use 'USE_GITHUB=yes' to get source tree
and git isn't installed in build environment. So we need to modify the
file so branch name and commit hash is properly assigned.
Previously we simply use REINPLACE_CMD and regular expression to
modify it. But recently the codes that need to be modified are changed
so they expand to multiple lines. And this makes it difficult to
achieve proper modification with single step.
So change the way to modify lisp/loadup.el so it is achieved with
following 2 steps.
- Apply patch that makes following changes.
- Assign branch name to 'master'
- Assing commit hash to '%%GH_TAGNAME%%'
- Replace each occurrence of '%%GH_TAGNAME%%' in the file with the value of ${GH_TAGNAME} by using REINPLACE_CMD
Changes: https://github.com/emacs-mirror/emacs/compare/18e7bc8...fd1479a