diff options
author | Glenn Morris <rgm@gnu.org> | 2019-12-27 07:50:16 -0800 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2019-12-27 07:50:16 -0800 |
commit | 822c98a4426f852b2753f607538093bf20e61add (patch) | |
tree | 41ba55b5a0bb541f6e44f142c099260831fa8efc /admin | |
parent | 4fff3edec8cc3e7b0125276b9e297a2b445702ad (diff) | |
parent | 8aad80d6613576faa8910336863474d485e1c030 (diff) | |
download | emacs-822c98a4426f852b2753f607538093bf20e61add.tar.gz |
Merge from origin/emacs-27
8aad80d661 Fix installer build
47a73e3e14 Update Windows build documentation
cd55984153 Calc: add missing dynamic variable declarations
e8aa6f19e9 * doc/emacs/buffers.texi (Kill Buffer): Improve indexing.
ccd7cd2c51 Speed up dired-do-find-regexp
7edb1f0773 ; Remove outdated declarations
6ab40c1a51 ; Clarify the assumption
be38e39fcc project--find-regexp-in-files: Support remote files
21c3020fce Document some restrictions for module functions.
e1ce9f3423 Don't recommend using 'module-load' for loading modules.
03f962a486 Port x_get_monitor_attributes_fallback to !HAVE_GTK3
0b32f59764 Fix compilation warning in gnus-start.el
Diffstat (limited to 'admin')
-rw-r--r-- | admin/nt/dist-build/README-scripts | 53 | ||||
-rwxr-xr-x | admin/nt/dist-build/build-zips.sh | 14 |
2 files changed, 58 insertions, 9 deletions
diff --git a/admin/nt/dist-build/README-scripts b/admin/nt/dist-build/README-scripts index 1c62a866724..4c3554e8df5 100644 --- a/admin/nt/dist-build/README-scripts +++ b/admin/nt/dist-build/README-scripts @@ -68,7 +68,8 @@ uploaded. Build Process ------------- -For each major version: +For each major version +---------------------- The dependencies files need to be created. This can be around the time of the pre-tests, then used for all releases of that version, to @@ -78,9 +79,9 @@ To do this: Update msys to the latest version with `pacman -Syu`. -Then run build-dep-zips.py, in this directory. Three zips will be -created, containing the 64bit and 32bit dependencies, as well as the -source for these. +Then run build-dep-zips.py, in the ~/emacs-build/deps directory. Three +zips will be created, containing the 64bit and 32bit dependencies, as +well as the source for these. For emacs release or pre-test version: @@ -90,3 +91,47 @@ with the tag of the last version. Then run `build-zips.sh` in this worktree. Eventually, four new zip files will be created in ~/emacs-upload from where they can be signed and uploaded with `gnupload`. + + +For snapshots from Master +------------------------- + +Snapshots are generally created from master when there is a release +branch on which a release has already been created. At this point, +only pre-tests or full releases need to happen from the release +branch. + +To do this: + +Update msys to the latest version with `pacman -Syu`. + +Then run build-dep-zips.py, in ~/emacs-build/deps directory. Three +zips will be created, containing the 64bit and 32bit dependencies, as +well as the source for these. These deps files contain the date of +creation in their name. The deps file can be reused as desired, or a +new version created. Where multiple deps files exist, the most +recent will be used. + +Now, run `build-zips.sh -s` to build a snapshot release. + + +For snapshots from a Release Branch +----------------------------------- + +Snapshots can be built from a release branch; this is really only +useful before a pre-test has happened. + +The process is the same as for building from the master branch, except +that the release branch should already exist as a worktree, and the +version number must be added to the command line with `build-zips.sh +-V 27 -s`. The final zips will be named after the branch rather than +the version (e.g emacs-27-2019-12-26.zip) rather than than the Emacs +version (e.g emacs-27.0.50.zip). + +For snapshots from another branch +--------------------------------- + +Snapshots can be build from any other branch. There is rarely a need +to do this, except where some significant, wide-ranging feature is +being added on a feature branch. In this case, the branch can be +given using `build-zips.sh -b pdumper -s` for example. diff --git a/admin/nt/dist-build/build-zips.sh b/admin/nt/dist-build/build-zips.sh index cff6fdec3e0..d8cbee30754 100755 --- a/admin/nt/dist-build/build-zips.sh +++ b/admin/nt/dist-build/build-zips.sh @@ -160,23 +160,27 @@ while getopts "36gb:hnsiV:" opt; do esac done -if [ -z $VERSION ]; + +## ACTUAL_VERSION is the version declared by emacs +if [ -z $ACTUAL_VERSION ]; then - VERSION=` + ACTUAL_VERSION=` sed -n 's/^AC_INIT(GNU Emacs,[ ]*\([^ ,)]*\).*/\1/p' < ../../../configure.ac ` fi -if [ -z $VERSION ]; +if [ -z $ACTUAL_VERSION ]; then echo [build] Cannot determine Emacs version exit 1 fi +## VERSION is the version that we want to call Emacs +VERSION=$ACTUAL_VERSION + + MAJOR_VERSION="$(echo $VERSION | cut -d'.' -f1)" -## ACTUAL VERSION is the version declared by emacs -ACTUAL_VERSION=$VERSION ## VERSION includes the word snapshot if necessary VERSION=$VERSION$SNAPSHOT |