diff options
| author | Glenn Morris | 2014-11-09 16:17:17 -0800 |
|---|---|---|
| committer | Glenn Morris | 2014-11-09 16:17:17 -0800 |
| commit | a16d6f90eee0668d3658e5a9ad89854a8d95a99a (patch) | |
| tree | 5f163bcdf3b5a5f8d68e3c4a3c81f8307e551932 | |
| parent | 5d4da32d4ec662febf3a2f59b713229867f743cb (diff) | |
| download | emacs-a16d6f90eee0668d3658e5a9ad89854a8d95a99a.tar.gz emacs-a16d6f90eee0668d3658e5a9ad89854a8d95a99a.zip | |
Stop keeping doc/emacs/emacsver.texi in the repository
* configure.ac (doc/emacs/emacsver.texi): Generate it.
* make-dist (doc/emacs/emacsver.texi) [update]: No longer check it.
* doc/emacs/Makefile.in (top_srcdir, version): New, set by configure.
(doc-emacsver): New rule.
(bootstrap-clean, maintainer-clean): Delete emacsver.texi.
(emacsver.texi.in): Rename from emacsver.texi.
* admin/admin.el (set-version): No need to update doc/emacs/emacsver.texi.
(make-manuals-dist-output-variables): Add top_srcdir.
(make-manuals-dist--1): Handle @version@ specially.
* .bzrignore: Add doc/emacs/emacsver.texi.
| -rw-r--r-- | ChangeLog | 13 | ||||
| -rw-r--r-- | admin/ChangeLog | 6 | ||||
| -rw-r--r-- | admin/admin.el | 17 | ||||
| -rw-r--r-- | configure.ac | 5 | ||||
| -rw-r--r-- | doc/emacs/ChangeLog | 7 | ||||
| -rw-r--r-- | doc/emacs/Makefile.in | 17 | ||||
| -rw-r--r-- | doc/emacs/emacsver.texi | 4 | ||||
| -rw-r--r-- | doc/emacs/emacsver.texi.in | 2 | ||||
| -rwxr-xr-x | make-dist | 5 |
9 files changed, 55 insertions, 21 deletions
| @@ -1,12 +1,15 @@ | |||
| 1 | 2014-11-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.ac (doc/emacs/emacsver.texi): Generate it. | ||
| 4 | * make-dist (doc/emacs/emacsver.texi) [update]: No longer check it. | ||
| 5 | |||
| 1 | 2014-11-08 Dani Moncayo <dmoncayo@gmail.com> | 6 | 2014-11-08 Dani Moncayo <dmoncayo@gmail.com> |
| 2 | 7 | ||
| 3 | * build-aux/msys-to-w32: simplify the initial over-engineered | 8 | * build-aux/msys-to-w32: Simplify the initial over-engineered |
| 4 | interface, and the implementation. | 9 | interface, and the implementation. |
| 5 | * Makefile.in (epaths-force-w32): Update for the above. Also | 10 | * Makefile.in (epaths-force-w32): Update for the above. Also |
| 6 | simplify, assuming that the shell is bash (which is the case in | 11 | simplify, assuming that the shell is bash (which is the case in MSYS). |
| 7 | MSYS). | 12 | (msys_w32prefix_subst, msys_sed_sh_escape): Remove (no longer used). |
| 8 | (msys_w32prefix_subst, msys_sed_sh_escape): Remove (no longer | ||
| 9 | used). | ||
| 10 | 13 | ||
| 11 | 2014-11-05 Glenn Morris <rgm@gnu.org> | 14 | 2014-11-05 Glenn Morris <rgm@gnu.org> |
| 12 | 15 | ||
diff --git a/admin/ChangeLog b/admin/ChangeLog index e85c21a6cf9..2ec447b133c 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-11-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * admin.el (set-version): No need to update doc/emacs/emacsver.texi. | ||
| 4 | (make-manuals-dist-output-variables): Add top_srcdir. | ||
| 5 | (make-manuals-dist--1): Handle @version@ specially. | ||
| 6 | |||
| 1 | 2014-11-09 Eric Ludlam <zappo@gnu.org> | 7 | 2014-11-09 Eric Ludlam <zappo@gnu.org> |
| 2 | 8 | ||
| 3 | * grammars/c.by (template-type): Add :template-specifier and | 9 | * grammars/c.by (template-type): Add :template-specifier and |
diff --git a/admin/admin.el b/admin/admin.el index 48e083d7789..14d851eb202 100644 --- a/admin/admin.el +++ b/admin/admin.el | |||
| @@ -94,9 +94,6 @@ Root must be the root of an Emacs source tree." | |||
| 94 | (rx (and "AC_INIT" (1+ (not (in ?,))) | 94 | (rx (and "AC_INIT" (1+ (not (in ?,))) |
| 95 | ?, (0+ space) | 95 | ?, (0+ space) |
| 96 | (submatch (1+ (in "0-9.")))))) | 96 | (submatch (1+ (in "0-9.")))))) |
| 97 | (set-version-in-file root "doc/emacs/emacsver.texi" version | ||
| 98 | (rx (and "EMACSVER" (1+ space) | ||
| 99 | (submatch (1+ (in "0-9.")))))) | ||
| 100 | (set-version-in-file root "doc/man/emacs.1" version | 97 | (set-version-in-file root "doc/man/emacs.1" version |
| 101 | (rx (and ".TH EMACS" (1+ not-newline) | 98 | (rx (and ".TH EMACS" (1+ not-newline) |
| 102 | "GNU Emacs" (1+ space) | 99 | "GNU Emacs" (1+ space) |
| @@ -611,7 +608,7 @@ style=\"text-align:left\">") | |||
| 611 | 608 | ||
| 612 | 609 | ||
| 613 | (defconst make-manuals-dist-output-variables | 610 | (defconst make-manuals-dist-output-variables |
| 614 | `(("@srcdir@" . ".") | 611 | `(("@\\(top_\\)?srcdir@" . ".") ; top_srcdir is wrong, but not used |
| 615 | ("^\\(\\(?:texinfo\\|buildinfo\\|emacs\\)dir *=\\).*" . "\\1 .") | 612 | ("^\\(\\(?:texinfo\\|buildinfo\\|emacs\\)dir *=\\).*" . "\\1 .") |
| 616 | ("^\\(clean:.*\\)" . "\\1 infoclean") | 613 | ("^\\(clean:.*\\)" . "\\1 infoclean") |
| 617 | ("@MAKEINFO@" . "makeinfo") | 614 | ("@MAKEINFO@" . "makeinfo") |
| @@ -655,11 +652,13 @@ style=\"text-align:left\">") | |||
| 655 | (string-match-p "\\.\\(eps\\|pdf\\)\\'" file))) | 652 | (string-match-p "\\.\\(eps\\|pdf\\)\\'" file))) |
| 656 | (copy-file file stem))) | 653 | (copy-file file stem))) |
| 657 | (with-temp-buffer | 654 | (with-temp-buffer |
| 658 | (insert-file-contents (format "../doc/%s/Makefile.in" type)) | 655 | (let ((outvars make-manuals-dist-output-variables)) |
| 659 | (dolist (cons make-manuals-dist-output-variables) | 656 | (push `("@version@" . ,version) outvars) |
| 660 | (while (re-search-forward (car cons) nil t) | 657 | (insert-file-contents (format "../doc/%s/Makefile.in" type)) |
| 661 | (replace-match (cdr cons) t)) | 658 | (dolist (cons outvars) |
| 662 | (goto-char (point-min))) | 659 | (while (re-search-forward (car cons) nil t) |
| 660 | (replace-match (cdr cons) t)) | ||
| 661 | (goto-char (point-min)))) | ||
| 663 | (let (ats) | 662 | (let (ats) |
| 664 | (while (re-search-forward "@[a-zA-Z_]+@" nil t) | 663 | (while (re-search-forward "@[a-zA-Z_]+@" nil t) |
| 665 | (setq ats t) | 664 | (setq ats t) |
diff --git a/configure.ac b/configure.ac index cb42ed6c724..f7aa407265d 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -5174,6 +5174,11 @@ if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then | |||
| 5174 | fi | 5174 | fi |
| 5175 | ]) | 5175 | ]) |
| 5176 | 5176 | ||
| 5177 | AC_CONFIG_COMMANDS([doc/emacs/emacsver.texi], [ | ||
| 5178 | ${MAKE-make} -s --no-print-directory -C doc/emacs doc-emacsver || \ | ||
| 5179 | AC_MSG_ERROR(['doc/emacs/emacsver.texi' could not be made.]) | ||
| 5180 | ]) | ||
| 5181 | |||
| 5177 | AC_OUTPUT | 5182 | AC_OUTPUT |
| 5178 | 5183 | ||
| 5179 | test "$MAKE" = make || AC_MSG_NOTICE([Now you can run '$MAKE'.]) | 5184 | test "$MAKE" = make || AC_MSG_NOTICE([Now you can run '$MAKE'.]) |
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 0ca6af0e648..68ac9f5af78 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2014-11-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (top_srcdir, version): New, set by configure. | ||
| 4 | (doc-emacsver): New rule. | ||
| 5 | (bootstrap-clean, maintainer-clean): Delete emacsver.texi. | ||
| 6 | (emacsver.texi.in): Rename from emacsver.texi. | ||
| 7 | |||
| 1 | 2014-11-09 Juri Linkov <juri@jurta.org> | 8 | 2014-11-09 Juri Linkov <juri@jurta.org> |
| 2 | 9 | ||
| 3 | * search.texi (Other Repeating Search): Add documentation for | 10 | * search.texi (Other Repeating Search): Add documentation for |
diff --git a/doc/emacs/Makefile.in b/doc/emacs/Makefile.in index 67c324e1f9d..d03a9fc6eac 100644 --- a/doc/emacs/Makefile.in +++ b/doc/emacs/Makefile.in | |||
| @@ -26,6 +26,10 @@ SHELL = @SHELL@ | |||
| 26 | # of the source tree. This is set by configure's `--srcdir' option. | 26 | # of the source tree. This is set by configure's `--srcdir' option. |
| 27 | srcdir=@srcdir@ | 27 | srcdir=@srcdir@ |
| 28 | 28 | ||
| 29 | top_srcdir = @top_srcdir@ | ||
| 30 | |||
| 31 | version = @version@ | ||
| 32 | |||
| 29 | ## Where the output files go. | 33 | ## Where the output files go. |
| 30 | ## Note that the setfilename command in the .texi files assumes this. | 34 | ## Note that the setfilename command in the .texi files assumes this. |
| 31 | ## This is a bit funny. Because the info files are in the | 35 | ## This is a bit funny. Because the info files are in the |
| @@ -178,6 +182,18 @@ emacs-xtra.pdf: $(EMACS_XTRA) | |||
| 178 | %.ps: %.dvi | 182 | %.ps: %.dvi |
| 179 | $(DVIPS) -o $@ $< | 183 | $(DVIPS) -o $@ $< |
| 180 | 184 | ||
| 185 | .PHONY: doc-emacsver | ||
| 186 | |||
| 187 | # If configure were to just generate emacsver.texi from emacsver.texi.in | ||
| 188 | # in the normal way, the timestamp of emacsver.texi would always be | ||
| 189 | # newer than that of the info files, which are prebuilt in release tarfiles. | ||
| 190 | # So we use this rule, and move-if-change, to avoid that. | ||
| 191 | doc-emacsver: | ||
| 192 | sed 's/[@]version@/${version}/' \ | ||
| 193 | ${srcdir}/emacsver.texi.in > emacsver.texi.in.$$$$ && \ | ||
| 194 | ${top_srcdir}/build-aux/move-if-change emacsver.texi.in.$$$$ \ | ||
| 195 | ${srcdir}/emacsver.texi | ||
| 196 | |||
| 181 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean infoclean | 197 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean infoclean |
| 182 | 198 | ||
| 183 | ## Temp files. | 199 | ## Temp files. |
| @@ -200,6 +216,7 @@ infoclean: | |||
| 200 | $(buildinfodir)/emacs.info-[1-9][0-9] | 216 | $(buildinfodir)/emacs.info-[1-9][0-9] |
| 201 | 217 | ||
| 202 | bootstrap-clean maintainer-clean: distclean infoclean | 218 | bootstrap-clean maintainer-clean: distclean infoclean |
| 219 | rm -f ${srcdir}/emacsver.texi | ||
| 203 | 220 | ||
| 204 | .PHONY: install-dvi install-html install-pdf install-ps install-doc | 221 | .PHONY: install-dvi install-html install-pdf install-ps install-doc |
| 205 | 222 | ||
diff --git a/doc/emacs/emacsver.texi b/doc/emacs/emacsver.texi deleted file mode 100644 index ac01c185bc1..00000000000 --- a/doc/emacs/emacsver.texi +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | @c It would be nicer to generate this using configure and @version@. | ||
| 2 | @c However, that would mean emacsver.texi would always be newer | ||
| 3 | @c then the info files in release tarfiles. | ||
| 4 | @set EMACSVER 25.0.50 | ||
diff --git a/doc/emacs/emacsver.texi.in b/doc/emacs/emacsver.texi.in new file mode 100644 index 00000000000..fa685125301 --- /dev/null +++ b/doc/emacs/emacsver.texi.in | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | @c configure generates emacsver.texi from emacsver.texi.in via a Makefile rule | ||
| 2 | @set EMACSVER @version@ | ||
| @@ -169,9 +169,8 @@ fi | |||
| 169 | echo Version number is $version | 169 | echo Version number is $version |
| 170 | 170 | ||
| 171 | if [ $update = yes ]; then | 171 | if [ $update = yes ]; then |
| 172 | if ! grep -q "@set EMACSVER *${version}" doc/emacs/emacsver.texi || \ | 172 | if ! grep -q "tree holds version *${version}" README; then |
| 173 | ! grep -q "tree holds version *${version}" README; then | 173 | echo "WARNING: README has the wrong version number" |
| 174 | echo "WARNING: README and/or emacsver.texi have the wrong version number" | ||
| 175 | echo "Consider running M-x set-version from admin/admin.el" | 174 | echo "Consider running M-x set-version from admin/admin.el" |
| 176 | sleep 5 | 175 | sleep 5 |
| 177 | fi | 176 | fi |