emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r118331: Merge from emacs-24; up to 117691


From: Glenn Morris
Subject: [Emacs-diffs] trunk r118331: Merge from emacs-24; up to 117691
Date: Sun, 09 Nov 2014 02:07:00 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 118331 [merge]
revision-id: address@hidden
parent: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Sat 2014-11-08 18:06:29 -0800
message:
  Merge from emacs-24; up to 117691
modified:
  admin/ChangeLog                changelog-20091113204419-o5vbwnq5f7feedwu-2226
  admin/admin.el                 admin.el-20091113204419-o5vbwnq5f7feedwu-2254
  doc/emacs/ChangeLog            changelog-20091113204419-o5vbwnq5f7feedwu-6227
  doc/emacs/Makefile.in          
makefile.in-20091113204419-o5vbwnq5f7feedwu-6228
  doc/lispintro/ChangeLog        changelog-20091113204419-o5vbwnq5f7feedwu-6128
  doc/lispintro/Makefile.in      
makefile.in-20091113204419-o5vbwnq5f7feedwu-6130
  doc/lispref/ChangeLog          changelog-20091113204419-o5vbwnq5f7feedwu-6155
  doc/lispref/Makefile.in        
makefile.in-20091113204419-o5vbwnq5f7feedwu-6156
  doc/misc/ChangeLog             changelog-20091113204419-o5vbwnq5f7feedwu-6331
  doc/misc/Makefile.in           
makefile.in-20091113204419-o5vbwnq5f7feedwu-6287
=== modified file 'admin/ChangeLog'
--- a/admin/ChangeLog   2014-11-04 17:46:49 +0000
+++ b/admin/ChangeLog   2014-11-09 02:06:29 +0000
@@ -1,3 +1,9 @@
+2014-11-09  Glenn Morris  <address@hidden>
+
+       * admin.el (make-manuals-dist-output-variables)
+       (make-manuals-dist--1, make-manuals-dist): New.
+       Replaces doc/*/Makefile.in `dist' rules.
+
 2014-11-04  Paul Eggert  <address@hidden>
 
        Spelling fixes; tweak explanation of commit messages.

=== modified file 'admin/admin.el'
--- a/admin/admin.el    2014-05-10 21:59:05 +0000
+++ b/admin/admin.el    2014-11-09 02:02:51 +0000
@@ -610,6 +610,87 @@
        (forward-line 1)))))
 
 
+(defconst make-manuals-dist-output-variables
+  `(("@srcdir@" . ".")
+    ("^\\(\\(?:texinfo\\|buildinfo\\|emacs\\)dir *=\\).*" . "\\1 .")
+    ("^\\(clean:.*\\)" . "\\1 infoclean")
+    ("@MAKEINFO@" . "makeinfo")
+    ("@MKDIR_P@" . "mkdir -p")
+    ("@INFO_EXT@" . ".info")
+    ("@INFO_OPTS@" . "")
+    ("@SHELL@" . "/bin/bash")
+    ("@prefix@" . "/usr/local")
+    ("@datarootdir@" . "${prefix}/share")
+    ("@datadir@" . "${datarootdir}")
+    ("@PACKAGE_TARNAME@" . "emacs")
+    ("@docdir@" . "${datarootdir}/doc/${PACKAGE_TARNAME}")
+    ("@\\(dvi\\|html\\|pdf\\|ps\\)dir@" . "${docdir}")
+    ("@GZIP_PROG@" . "gzip")
+    ("@INSTALL@" . "install -c")
+    ("@INSTALL_DATA@" . "${INSTALL} -m 644")
+    ("@configure_input@" . ""))
+  "Alist of (REGEXP . REPLACEMENT) pairs for `make-manuals-dist'.")
+
+(defun make-manuals-dist--1 (root type)
+  "Subroutine of `make-manuals-dist'."
+  (let* ((dest (expand-file-name "manual" root))
+        (default-directory (progn (make-directory dest t)
+                                  (file-name-as-directory dest)))
+        (version (with-temp-buffer
+                   (insert-file-contents "../doc/emacs/emacsver.texi")
+                   (re-search-forward "@set EMACSVER \\([0-9.]+\\)")
+                   (match-string 1)))
+        (stem (format "emacs-%s-%s" (if (equal type "emacs") "manual" type)
+                      version))
+        (tarfile (format "%s.tar" stem)))
+    (message "Doing %s..." type)
+    (if (file-directory-p stem)
+       (delete-directory stem t))
+    (make-directory stem)
+    (copy-file "../doc/misc/texinfo.tex" stem)
+    (or (equal type "emacs") (copy-file "../doc/emacs/emacsver.texi" stem))
+    (dolist (file (directory-files (format "../doc/%s" type) t))
+      (if (or (string-match-p "\\(\\.texi\\'\\|/ChangeLog\\|/README\\'\\)" 
file)
+             (and (equal type "lispintro")
+                  (string-match-p "\\.\\(eps\\|pdf\\)\\'" file)))
+         (copy-file file stem)))
+    (with-temp-buffer
+      (insert-file-contents (format "../doc/%s/Makefile.in" type))
+      (dolist (cons make-manuals-dist-output-variables)
+       (while (re-search-forward (car cons) nil t)
+         (replace-match (cdr cons) t))
+       (goto-char (point-min)))
+      (let (ats)
+       (while (re-search-forward "@[a-zA-Z_]+@" nil t)
+         (setq ats t)
+         (message "Unexpanded: %s" (match-string 0)))
+       (if ats (error "Unexpanded configure variables in Makefile?")))
+      (write-region nil nil (expand-file-name (format "%s/Makefile" stem))
+                   nil 'silent))
+    (call-process "tar" nil nil nil "-cf" tarfile stem)
+    (delete-directory stem t)
+    (message "...created %s" tarfile)))
+
+;; Does anyone actually use these tarfiles?
+(defun make-manuals-dist (root &optional type)
+  "Make the standalone manual source tarfiles for the Emacs webpage.
+ROOT should be the root of an Emacs source tree.
+Interactively with a prefix argument, prompt for TYPE.
+Optional argument TYPE is type of output (nil means all)."
+  (interactive (let ((root (read-directory-name "Emacs root directory: "
+                                               source-directory nil t)))
+                (list root
+                      (if current-prefix-arg
+                          (completing-read
+                           "Type: "
+                           '("emacs" "lispref" "lispintro" "misc"))))))
+  (unless (file-exists-p (expand-file-name "src/emacs.c" root))
+    (user-error "%s doesn't seem to be the root of an Emacs source tree" root))
+  (dolist (m '("emacs" "lispref" "lispintro" "misc"))
+    (if (member type (list nil m))
+       (make-manuals-dist--1 root m))))
+
+
 ;; Stuff to check new `defcustom's got :version tags.
 ;; Adapted from check-declare.el.
 

=== modified file 'doc/emacs/ChangeLog'
--- a/doc/emacs/ChangeLog       2014-11-03 21:49:37 +0000
+++ b/doc/emacs/ChangeLog       2014-11-09 02:06:29 +0000
@@ -1,3 +1,9 @@
+2014-11-09  Glenn Morris  <address@hidden>
+
+       * Makefile.in (version): Remove variable.
+       (clean): No longer delete dist tarfile.
+       (dist): Remove rule; replace with code in admin.el.
+
 2014-11-03  Glenn Morris  <address@hidden>
 
        * programs.texi (Misc for Programs): Fix typo.

=== modified file 'doc/emacs/Makefile.in'
--- a/doc/emacs/Makefile.in     2014-10-13 01:47:48 +0000
+++ b/doc/emacs/Makefile.in     2014-11-09 02:06:29 +0000
@@ -26,9 +26,6 @@
 # of the source tree.  This is set by configure's `--srcdir' option.
 address@hidden@
 
-# Only for make dist.
address@hidden@
-
 ## Where the output files go.
 ## Note that the setfilename command in the .texi files assumes this.
 ## This is a bit funny.  Because the info files are in the
@@ -191,7 +188,6 @@
 ## Products not in the release tarfiles.
 clean: mostlyclean
        rm -f $(DVI_TARGETS) $(HTML_TARGETS) $(PDF_TARGETS) $(PS_TARGETS)
-       rm -f emacs-manual-${version}.tar*
 
 distclean: clean
        rm -f Makefile
@@ -205,44 +201,6 @@
 
 bootstrap-clean maintainer-clean: distclean infoclean
 
-.PHONY: dist
-
-## Make a standalone tarfile of the Emacs manual sources.
-## The [c] is a dumb way to prevent configure expanding it.
-## TODO this is getting increasingly lengthy; not sure it is worth keeping.
-dist:
-       rm -rf emacs-manual-${version}
-       mkdir emacs-manual-${version}
-       cp ${srcdir}/*.texi ${texinfodir}/texinfo.tex \
-         ${srcdir}/ChangeLog* emacs-manual-${version}/
-       sed -e 's/@sr[c]dir@/./' -e 's/^\(texinfodir *=\).*/\1 ./' \
-         -e 's/^\(buildinfodir *=\).*/\1 ./' \
-         -e 's/^\(clean:.*\)/\1 infoclean/' \
-         -e "s/@ver[s]ion@/${version}/" \
-         -e 's/@MAKE[I]NFO@/makeinfo/' -e 's/@MK[D]IR_P@/mkdir -p/' \
-         -e 's/@IN[F]O_EXT@/.info/' -e 's/@IN[F]O_OPTS@//' \
-         -e 's|@SH[E]LL@|/bin/bash|' \
-         -e 's|@[p]refix@|/usr/local|' \
-         -e 's|@[d]atarootdir@|$${prefix}/share|' \
-         -e 's|@[d]atadir@|$${datarootdir}|' \
-         -e 's|@[P]ACKAGE_TARNAME@|emacs|' \
-         -e 's|@[d]ocdir@|$${datarootdir}/doc/$${PACKAGE_TARNAME}|' \
-         -e 's|@[d]vidir@|$${docdir}|' \
-         -e 's|@[h]tmldir@|$${docdir}|' \
-         -e 's|@[p]dfdir@|$${docdir}|' \
-         -e 's|@[p]sdir@|$${docdir}|' \
-         -e 's|@[G]ZIP_PROG@|gzip|' \
-         -e 's|@IN[S]TALL@|install -c|' \
-         -e 's|@IN[S]TALL_DATA@|$${INSTALL} -m 644|' \
-         -e '/@[c]onfigure_input@/d' \
-         ${srcdir}/Makefile.in > emacs-manual-${version}/Makefile
-       @if grep '@[a-zA-Z_]*@' emacs-manual-${version}/Makefile; then \
-         echo "Unexpanded configure variables in Makefile?" 1>&2; exit 1; \
-       fi
-       tar -cf emacs-manual-${version}.tar emacs-manual-${version}
-       rm -rf emacs-manual-${version}
-
-
 .PHONY: install-dvi install-html install-pdf install-ps install-doc
 
 install-dvi: dvi

=== modified file 'doc/lispintro/ChangeLog'
--- a/doc/lispintro/ChangeLog   2014-10-30 05:15:28 +0000
+++ b/doc/lispintro/ChangeLog   2014-11-09 02:06:29 +0000
@@ -1,3 +1,9 @@
+2014-11-09  Glenn Morris  <address@hidden>
+
+       * Makefile.in (version): Remove variable.
+       (clean): No longer delete dist tarfile.
+       (dist): Remove rule; replace with code in admin.el.
+
 2014-10-20  Glenn Morris  <address@hidden>
 
        * Merge in all changes up to 24.4 release.

=== modified file 'doc/lispintro/Makefile.in'
--- a/doc/lispintro/Makefile.in 2014-10-13 01:47:48 +0000
+++ b/doc/lispintro/Makefile.in 2014-11-09 02:06:29 +0000
@@ -19,10 +19,7 @@
 
 SHELL = @SHELL@
 
-# NB If you add any more configure variables,
-# update the sed rules in the dist target below.
 srcdir = @srcdir@
address@hidden@
 
 buildinfodir = $(srcdir)/../../info
 # Directory with the (customized) texinfo.tex file.
@@ -108,7 +105,6 @@
 
 clean: mostlyclean
        rm -f $(DVI_TARGETS) $(HTML_TARGETS) $(PDF_TARGETS) $(PS_TARGETS)
-       rm -f emacs-lispintro-${version}.tar*
 
 distclean: clean
        rm -f Makefile
@@ -120,43 +116,6 @@
 
 bootstrap-clean maintainer-clean: distclean infoclean
 
-.PHONY: dist
-
-dist:
-       rm -rf emacs-lispintro-${version}
-       mkdir emacs-lispintro-${version}
-       cp ${srcdir}/*.texi ${srcdir}/*.eps ${srcdir}/*.pdf \
-         ${texinfodir}/texinfo.tex ${emacsdir}/emacsver.texi \
-         ${srcdir}/ChangeLog* ${srcdir}/README emacs-lispintro-${version}/
-       sed -e 's/@sr[c]dir@/./' -e 's/^\(texinfodir *=\).*/\1 ./' \
-         -e 's/^\(emacsdir *=\).*/\1 ./' \
-         -e 's/^\(buildinfodir *=\).*/\1 ./' \
-         -e 's/^\(clean:.*\)/\1 infoclean/' \
-         -e "s/@ver[s]ion@/${version}/" \
-         -e 's/@MAKE[I]NFO@/makeinfo/' -e 's/@MK[D]IR_P@/mkdir -p/' \
-         -e 's/@IN[F]O_EXT@/.info/' -e 's/@IN[F]O_OPTS@//' \
-         -e 's|@SH[E]LL@|/bin/bash|' \
-         -e 's|@[p]refix@|/usr/local|' \
-         -e 's|@[d]atarootdir@|$${prefix}/share|' \
-         -e 's|@[d]atadir@|$${datarootdir}|' \
-         -e 's|@[P]ACKAGE_TARNAME@|emacs|' \
-         -e 's|@[d]ocdir@|$${datarootdir}/doc/$${PACKAGE_TARNAME}|' \
-         -e 's|@[d]vidir@|$${docdir}|' \
-         -e 's|@[h]tmldir@|$${docdir}|' \
-         -e 's|@[p]dfdir@|$${docdir}|' \
-         -e 's|@[p]sdir@|$${docdir}|' \
-         -e 's|@[G]ZIP_PROG@|gzip|' \
-         -e 's|@IN[S]TALL@|install -c|' \
-         -e 's|@IN[S]TALL_DATA@|$${INSTALL} -m 644|' \
-         -e '/@[c]onfigure_input@/d' \
-         ${srcdir}/Makefile.in > emacs-lispintro-${version}/Makefile
-       @if grep '@[a-zA-Z_]*@' emacs-lispintro-${version}/Makefile; then \
-         echo "Unexpanded configure variables in Makefile?" 1>&2; exit 1; \
-       fi
-       tar -cf emacs-lispintro-${version}.tar emacs-lispintro-${version}
-       rm -rf emacs-lispintro-${version}
-
-
 .PHONY: install-dvi install-html install-pdf install-ps install-doc
 
 install-dvi: dvi

=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog     2014-11-07 10:49:22 +0000
+++ b/doc/lispref/ChangeLog     2014-11-09 02:06:29 +0000
@@ -1,3 +1,9 @@
+2014-11-09  Glenn Morris  <address@hidden>
+
+       * Makefile.in (version): Remove variable.
+       (clean): No longer delete dist tarfile.
+       (dist): Remove rule; replace with code in admin.el.
+
 2014-11-07  Martin Rudalics  <address@hidden>
 
        * frames.texi (Size and Position): Rewrite description of

=== modified file 'doc/lispref/Makefile.in'
--- a/doc/lispref/Makefile.in   2014-10-13 01:47:48 +0000
+++ b/doc/lispref/Makefile.in   2014-11-09 02:06:29 +0000
@@ -25,8 +25,6 @@
 # Standard configure variables.
 srcdir = @srcdir@
 
address@hidden@
-
 buildinfodir = $(srcdir)/../../info
 # Directory with the (customized) texinfo.tex file.
 texinfodir = $(srcdir)/../misc
@@ -164,7 +162,6 @@
 clean: mostlyclean
        rm -f $(DVI_TARGETS) $(HTML_TARGETS) $(PDF_TARGETS) $(PS_TARGETS)
        rm -f vol[12].dvi vol[12].pdf vol[12].ps
-       rm -f emacs-lispref-${version}.tar*
 
 distclean: clean
        rm -f Makefile
@@ -177,43 +174,6 @@
 
 bootstrap-clean maintainer-clean: distclean infoclean
 
-.PHONY: dist
-
-## Note this excludes the two-volume stuff.
-dist:
-       rm -rf emacs-lispref-${version}
-       mkdir emacs-lispref-${version}
-       cp ${srcdir}/*.texi ${texinfodir}/texinfo.tex \
-         $(emacsdir)/emacsver.texi ${srcdir}/ChangeLog* \
-         ${srcdir}/README emacs-lispref-${version}/
-       sed -e 's/@sr[c]dir@/./' -e 's/^\(texinfodir *=\).*/\1 ./' \
-         -e 's/^\(emacsdir *=\).*/\1 ./' \
-         -e 's/^\(buildinfodir *=\).*/\1 ./' \
-         -e 's/^\(clean:.*\)/\1 infoclean/' \
-         -e "s/@ver[s]ion@/${version}/" \
-         -e 's/@MAKE[I]NFO@/makeinfo/' -e 's/@MK[D]IR_P@/mkdir -p/' \
-         -e 's/@IN[F]O_EXT@/.info/' -e 's/@IN[F]O_OPTS@//' \
-         -e 's|@SH[E]LL@|/bin/bash|' \
-         -e 's|@[p]refix@|/usr/local|' \
-         -e 's|@[d]atarootdir@|$${prefix}/share|' \
-         -e 's|@[d]atadir@|$${datarootdir}|' \
-         -e 's|@[P]ACKAGE_TARNAME@|emacs|' \
-         -e 's|@[d]ocdir@|$${datarootdir}/doc/$${PACKAGE_TARNAME}|' \
-         -e 's|@[d]vidir@|$${docdir}|' \
-         -e 's|@[h]tmldir@|$${docdir}|' \
-         -e 's|@[p]dfdir@|$${docdir}|' \
-         -e 's|@[p]sdir@|$${docdir}|' \
-         -e 's|@[G]ZIP_PROG@|gzip|' \
-         -e 's|@IN[S]TALL@|install -c|' \
-         -e 's|@IN[S]TALL_DATA@|$${INSTALL} -m 644|' \
-         -e '/@[c]onfigure_input@/d' \
-         ${srcdir}/Makefile.in > emacs-lispref-${version}/Makefile
-       @if grep '@[a-zA-Z_]*@' emacs-lispref-${version}/Makefile; then \
-         echo "Unexpanded configure variables in Makefile?" 1>&2; exit 1; \
-       fi
-       tar -cf emacs-lispref-${version}.tar emacs-lispref-${version}
-       rm -rf emacs-lispref-${version}
-
 .PHONY: install-dvi install-html install-pdf install-ps install-doc
 
 install-dvi: dvi

=== modified file 'doc/misc/ChangeLog'
--- a/doc/misc/ChangeLog        2014-11-08 19:12:38 +0000
+++ b/doc/misc/ChangeLog        2014-11-09 02:06:29 +0000
@@ -1,3 +1,9 @@
+2014-11-09  Glenn Morris  <address@hidden>
+
+       * Makefile.in (version): Remove variable.
+       (clean): No longer delete dist tarfile.
+       (dist): Remove rule; replace with code in admin.el.
+
 2014-11-08  Glenn Morris  <address@hidden>
 
        * Makefile.in (${buildinfodir}/ccmode.info)

=== modified file 'doc/misc/Makefile.in'
--- a/doc/misc/Makefile.in      2014-11-08 19:12:38 +0000
+++ b/doc/misc/Makefile.in      2014-11-09 02:06:29 +0000
@@ -23,8 +23,6 @@
 # of the source tree.  This is set by configure's `--srcdir' option.
 address@hidden@
 
address@hidden@
-
 ## Where the output files go.
 ## Note that all the Info targets build the Info files in srcdir.
 ## There is no provision for Info files to exist in the build directory.
@@ -222,7 +220,6 @@
 
 clean: mostlyclean
        rm -f *.dvi *.html *.pdf *.ps
-       rm -f emacs-misc-${version}.tar*
 
 distclean: clean
        rm -f Makefile
@@ -239,41 +236,6 @@
 
 bootstrap-clean maintainer-clean: distclean infoclean
 
-dist:
-       rm -rf emacs-misc-${version}
-       mkdir emacs-misc-${version}
-       cp ${srcdir}/*.texi ${srcdir}/texinfo.tex \
-         $(emacsdir)/emacsver.texi ${srcdir}/ChangeLog* \
-         emacs-misc-${version}/
-       sed -e 's/@sr[c]dir@/./' \
-         -e 's/^\(emacsdir *=\).*/\1 ./' \
-         -e 's/^\(buildinfodir *=\).*/\1 ./' \
-         -e 's/^\(clean:.*\)/\1 infoclean/' \
-         -e "s/@ver[s]ion@/${version}/" \
-         -e 's/@MAKE[I]NFO@/makeinfo/' -e 's/@MK[D]IR_P@/mkdir -p/' \
-         -e 's/@IN[F]O_EXT@/.info/' -e 's/@IN[F]O_OPTS@//' \
-         -e 's|@SH[E]LL@|/bin/bash|' \
-         -e 's|@[p]refix@|/usr/local|' \
-         -e 's|@[d]atarootdir@|$${prefix}/share|' \
-         -e 's|@[d]atadir@|$${datarootdir}|' \
-         -e 's|@[P]ACKAGE_TARNAME@|emacs|' \
-         -e 's|@[d]ocdir@|$${datarootdir}/doc/$${PACKAGE_TARNAME}|' \
-         -e 's|@[d]vidir@|$${docdir}|' \
-         -e 's|@[h]tmldir@|$${docdir}|' \
-         -e 's|@[p]dfdir@|$${docdir}|' \
-         -e 's|@[p]sdir@|$${docdir}|' \
-         -e 's|@[G]ZIP_PROG@|gzip|' \
-         -e 's|@IN[S]TALL@|install -c|' \
-         -e 's|@IN[S]TALL_DATA@|$${INSTALL} -m 644|' \
-         -e '/@[c]onfigure_input@/d' \
-         ${srcdir}/Makefile.in > emacs-misc-${version}/Makefile
-       @if grep '@[a-zA-Z_]*@' emacs-misc-${version}/Makefile; then \
-         echo "Unexpanded configure variables in Makefile?" 1>&2; exit 1; \
-       fi
-       tar -cf emacs-misc-${version}.tar emacs-misc-${version}
-       rm -rf emacs-misc-${version}
-
-
 .PHONY: install-dvi install-html install-pdf install-ps install-doc
 
 install-dvi: dvi


reply via email to

[Prev in Thread] Current Thread [Next in Thread]