[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex daa8a25 20/36: Update windows-package Make rule
From: |
Stefan Monnier |
Subject: |
[elpa] externals/auctex daa8a25 20/36: Update windows-package Make rule to new Emacs 24.4 package. |
Date: |
Fri, 28 Nov 2014 17:25:47 +0000 |
branch: externals/auctex
commit daa8a253e36359017eaf213069754edfe7a3eb49
Author: Mosè Giordano <address@hidden>
Date: Sat Nov 15 18:14:41 2014 +0100
Update windows-package Make rule to new Emacs 24.4 package.
* Makefile.in (WEMACSPACKAGE, WEMACSEXTRACTDIR): New variables.
(windows-package): Adapt rule to new Emacs 24.4 package for
Windows. Use `WEMACSPACKAGE' and `WEMACSEXTRACTDIR'.
---
ChangeLog | 6 ++++++
Makefile.in | 25 ++++++++++++++++++++-----
2 files changed, 26 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index dea4851..e36b51c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-11-15 Mos� Giordano <address@hidden>
+
+ * Makefile.in (WEMACSPACKAGE, WEMACSEXTRACTDIR): New variables.
+ (windows-package): Adapt rule to new Emacs 24.4 package for
+ Windows. Use `WEMACSPACKAGE' and `WEMACSEXTRACTDIR'.
+
2014-11-15 Davide G. M. Salvetti <address@hidden>
* Makefile.in (STYLESRC): Add `ifluatex.el', `luatextra.el'.
diff --git a/Makefile.in b/Makefile.in
index 5eba457..4747d32 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -439,6 +439,18 @@ WPACKAGE=auctex-$(TAG)-e$(WEMACSVER)-msw.zip
WPACKAGEFILES=site-lisp/auctex site-lisp/site-start.d site-lisp/site-start.el \
site-lisp/tex-site.el var/auctex doc info/dir info/auctex.info* \
info/preview-latex.info*
+# Starting from Emacs 24.4, the name of the Windows package has been changed.
+# The following variable set the name of the package depending on the selected
+# Emacs version.
+WEMACSPACKAGE=$(shell if echo "$(WEMACSVER)" | grep -q
'\(2[2-3].[1-4]\|24.[1-3]\)' -; \
+ then echo "emacs-$(WEMACSVER)-bin-i386.zip"; \
+ else echo "emacs-$(WEMACSVER)-bin-i686-pc-mingw32.zip"; fi)
+# They also changed the tree structure of the package, there is no more a top
+# level directory. The following variable set the directory to which extract
+# the files.
+WEMACSEXTRACTDIR=$(shell if echo "$(WEMACSVER)" | grep -q
'\(2[2-3].[1-4]\|24.[1-3]\)' -; \
+ then echo ""; \
+ else echo "emacs-$(WEMACSVER)"; fi)
windows-package: check-tag
@if [ "X$(WEMACSVER)" = "X" ]; then \
echo "*** Error: No Emacs version (WEMACSVER) ***"; \
@@ -446,9 +458,9 @@ windows-package: check-tag
fi
# Make sure the prerequisites are available
test -d $(WBUILDDIR) || mkdir $(WBUILDDIR)
- test -f $(WBUILDDIR)/emacs-$(WEMACSVER)-bin-i386.zip \
+ test -f $(WBUILDDIR)/$(WEMACSPACKAGE) \
|| { cd $(WBUILDDIR) \
- && wget
http://ftp.gnu.org/gnu/emacs/windows/emacs-$(WEMACSVER)-bin-i386.zip; }
+ && wget http://ftp.gnu.org/gnu/emacs/windows/$(WEMACSPACKAGE); }
test -f $(WBUILDDIR)/auctex-$(TAG).zip \
|| { test -f $(FTPDIR)/auctex-$(TAG).zip \
&& $(CP) $(FTPDIR)/auctex-$(TAG).zip $(WBUILDDIR); } \
@@ -458,11 +470,14 @@ windows-package: check-tag
cd $(WBUILDDIR) \
&& rm -rf emacs-$(WEMACSVER) \
&& rm -rf auctex-$(TAG) \
- && unzip emacs-$(WEMACSVER)-bin-i386.zip \
+ && unzip -d "$(WEMACSEXTRACTDIR)" $(WEMACSPACKAGE) \
&& unzip auctex-$(TAG).zip
rm -f $(WPACKAGE)
-# Create site-start.el and site-start.d
- cd $(WBUILDDIR)/emacs-$(WEMACSVER)/site-lisp \
+# Create the site-lisp subdirectory if needed (starting from Emacs 24.4 it is
no
+# more present in the Windows package) and then create site-start.el and
+# site-start.d
+ mkdir -p $(WBUILDDIR)/emacs-$(WEMACSVER)/site-lisp \
+ && cd $(WBUILDDIR)/emacs-$(WEMACSVER)/site-lisp \
&& echo -e ";; Load files in \`site-start.d' directory.\
\n(dolist (file (directory-files\
\n (concat (file-name-directory load-file-name) \"site-start.d\")\
- [elpa] externals/auctex f9611ad 04/36: Add new styles., (continued)
- [elpa] externals/auctex f9611ad 04/36: Add new styles., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 7f64d6c 15/36: Update the FAQ entry about failing `TeX-next-error' behavior, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex af12165 16/36: Add new `ifluatex.el' style, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex c4feba1 17/36: Add new `luatextra.el' style, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 1997613 11/36: Add copyright notice to style/foils.el, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex deb1a64 24/36: Use more consistent fontification in some styles, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 29724a5 19/36: Add `luatextra.el' to Makefile.in, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 20c7209 27/36: Fix fontification of a couple of fontspec macros., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 0cb3759 26/36: Implement inverse/backward search for TeX regions., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 0bae61a 18/36: Add `ifluatex.el' to Makefile.in, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex daa8a25 20/36: Update windows-package Make rule to new Emacs 24.4 package.,
Stefan Monnier <=
- [elpa] externals/auctex 622c054 22/36: Document presence of bashisms in some Make rules., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 904dfef 21/36: Fix structure of the package for Windows., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 3909e4c 06/36: Several changes suggested by byte-compiler warnings., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex a3f4cac 29/36: Implement forward-search for View command on TeX-region., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 0c2cfc8 09/36: Replace `read-string' with `TeX-read-string', Stefan Monnier, 2014/11/28
- [elpa] externals/auctex acf1c76 31/36: Document LaTeX-command-section., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 15edd9b 23/36: Omit f-f hooks and more with TeX-region-create, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 8f7c399 30/36: Implement LaTeX-command-section., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex e4101ed 25/36: Adapt bug intro text for debbugs., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 7b427a7 34/36: Merge ELPA changes fixing some byte-compile warnings., Stefan Monnier, 2014/11/28