diff options
| author | Po Lu | 2025-03-05 15:00:22 +0800 |
|---|---|---|
| committer | Po Lu | 2025-03-05 15:00:22 +0800 |
| commit | b06d605bc0d7fd76dc76ba04d3ac8719f9bce5c5 (patch) | |
| tree | ae4368ec4493bb16fb762881400f087fe6dc7dcd /admin | |
| parent | f5730e02518ec9758744267fd4866e2240491be9 (diff) | |
| parent | 121371a706491fde8c06d95b13c16703d53f6fa3 (diff) | |
| download | emacs-b06d605bc0d7fd76dc76ba04d3ac8719f9bce5c5.tar.gz emacs-b06d605bc0d7fd76dc76ba04d3ac8719f9bce5c5.zip | |
Merge from savannah/emacs-30
121371a7064 Move java/incrementing-version-code to AndroidManifest.xm...
8099dc6e3ae Provide an Android version code derived from the Emacs ve...
59fcb2aa1b2 ; * lisp/register.el (register-use-preview): Doc fix (bug...
0383937a701 ; Improve documentation of 'shortdoc'
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/admin.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/admin/admin.el b/admin/admin.el index 90bef11baf9..542556a65e0 100644 --- a/admin/admin.el +++ b/admin/admin.el | |||
| @@ -98,6 +98,10 @@ Optional argument DATE is the release date, default today." | |||
| 98 | (defvar admin-git-command (executable-find "git") | 98 | (defvar admin-git-command (executable-find "git") |
| 99 | "The `git' program to use.") | 99 | "The `git' program to use.") |
| 100 | 100 | ||
| 101 | (defvar admin-android-version-code-regexp | ||
| 102 | "\\bAuto-incrementing version code\\(?:.\\|\n\\)*\\([[:digit:]]\\{9\\}\\)$" | ||
| 103 | "Regexp with which to detect the version code in AndroidManifest.xml.") | ||
| 104 | |||
| 101 | (defun set-version (root version) | 105 | (defun set-version (root version) |
| 102 | "Set Emacs version to VERSION in relevant files under ROOT. | 106 | "Set Emacs version to VERSION in relevant files under ROOT. |
| 103 | Root must be the root of an Emacs source tree." | 107 | Root must be the root of an Emacs source tree." |
| @@ -122,6 +126,11 @@ Root must be the root of an Emacs source tree." | |||
| 122 | (rx (and "AC_INIT" (1+ (not (in ?,))) | 126 | (rx (and "AC_INIT" (1+ (not (in ?,))) |
| 123 | ?, (0+ space) ?\[ | 127 | ?, (0+ space) ?\[ |
| 124 | (submatch (1+ (in "0-9.")))))) | 128 | (submatch (1+ (in "0-9.")))))) |
| 129 | (set-version-in-file root "java/AndroidManifest.xml.in" | ||
| 130 | (apply #'format "%02d%02d%02d000" | ||
| 131 | (mapcar #'string-to-number | ||
| 132 | (split-string version "\\."))) | ||
| 133 | admin-android-version-code-regexp) | ||
| 125 | (set-version-in-file root "nt/README.W32" version | 134 | (set-version-in-file root "nt/README.W32" version |
| 126 | (rx (and "version" (1+ space) | 135 | (rx (and "version" (1+ space) |
| 127 | (submatch (1+ (in "0-9.")))))) | 136 | (submatch (1+ (in "0-9.")))))) |