emacs-elpa-diffs
[Top][All Lists]
Advanced

[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\")\



reply via email to

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