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 /doc | |
| 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.
Diffstat (limited to 'doc')
| -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 |
4 files changed, 26 insertions, 4 deletions
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@ | ||