auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 904dfef688a011ed528d0


From: Mosè Giordano
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 904dfef688a011ed528d0dc39476ecab441f1ec1
Date: Sun, 16 Nov 2014 11:05:08 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  904dfef688a011ed528d0dc39476ecab441f1ec1 (commit)
      from  daa8a253e36359017eaf213069754edfe7a3eb49 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 904dfef688a011ed528d0dc39476ecab441f1ec1
Author: Mosè Giordano <address@hidden>
Date:   Sun Nov 16 12:02:55 2014 +0100

    Fix structure of the package for Windows.
    
    * Makefile.in (WEMACSDATAROOTDIR, WEMACSSITELISP): New variables.
    (WPACKAGEFILES): Update accordingly.
    (windows-package): Fix structure of the package for Emacs 24.4.
    Reported by Uwe Siart.  Remove the zip package before creating it,
    otherwise it would be updated instead of recreated.

diff --git a/ChangeLog b/ChangeLog
index e36b51c..0df4fec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-11-16  Mosè Giordano  <address@hidden>
+
+       * Makefile.in (WEMACSDATAROOTDIR, WEMACSSITELISP): New variables.
+       (WPACKAGEFILES): Update accordingly.
+       (windows-package): Fix structure of the package for Emacs 24.4.
+       Reported by Uwe Siart.  Remove the zip package before creating it,
+       otherwise it would be updated instead of recreated.
+
 2014-11-15  Mosè Giordano  <address@hidden>
 
        * Makefile.in (WEMACSPACKAGE, WEMACSEXTRACTDIR): New variables.
diff --git a/Makefile.in b/Makefile.in
index 4747d32..b511cd3 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -436,21 +436,24 @@ xemacs-package: check-tag
 WBUILDDIR=$(PWD)/windows-package
 WEMACS=/usr/src/emacs-$(WEMACSVER)/src/emacs
 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)
+# Starting from Emacs 24.4, the name of the Windows package and the tree
+# structure of the package have been changed.  The following variables cater 
for
+# these differences.
+ifeq ($(shell echo "$(WEMACSVER)" | grep '\(2[2-3].[1-4]\|24.[1-3]\)' 
-),$(WEMACSVER))
+       WEMACSDATAROOTDIR=""
+       WEMACSEXTRACTDIR=""
+       WEMACSPACKAGE="emacs-$(WEMACSVER)-bin-i386.zip"
+       WEMACSSITELISP="site-lisp"
+else
+       WEMACSDATAROOTDIR="share/"
+       WEMACSEXTRACTDIR="emacs-$(WEMACSVER)"
+       WEMACSPACKAGE="emacs-$(WEMACSVER)-bin-i686-pc-mingw32.zip"
+       WEMACSSITELISP="$(WEMACSDATAROOTDIR)/emacs/site-lisp"
+endif
+WPACKAGEFILES=$(WEMACSSITELISP)/auctex $(WEMACSSITELISP)/site-start.d \
+       $(WEMACSSITELISP)/site-start.el $(WEMACSSITELISP)/tex-site.el \
+       var/auctex $(WEMACSDOC) $(WEMACSDATAROOTDIR)doc 
$(WEMACSDATAROOTDIR)info/dir \
+       $(WEMACSDATAROOTDIR)info/auctex.info* 
$(WEMACSDATAROOTDIR)info/preview-latex.info*
 windows-package: check-tag
        @if [ "X$(WEMACSVER)" = "X" ]; then \
          echo "*** Error: No Emacs version (WEMACSVER) ***"; \
@@ -473,11 +476,8 @@ windows-package: check-tag
        && unzip -d "$(WEMACSEXTRACTDIR)" $(WEMACSPACKAGE) \
        && unzip auctex-$(TAG).zip
        rm -f $(WPACKAGE)
-# 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 \
+# Create site-start.el and site-start.d
+       cd $(WBUILDDIR)/emacs-$(WEMACSVER)/$(WEMACSSITELISP) \
        && 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\")\
@@ -488,13 +488,14 @@ windows-package: check-tag
        cd $(WBUILDDIR)/auctex-$(TAG) \
        && ./configure --prefix=$(WBUILDDIR)/emacs-$(WEMACSVER) \
          --without-texmf-dir --with-emacs=$(WEMACS) \
-         --with-lispdir=$(WBUILDDIR)/emacs-$(WEMACSVER)/site-lisp \
-         --datarootdir=$(WBUILDDIR)/emacs-$(WEMACSVER) \
+         --with-lispdir=$(WBUILDDIR)/emacs-$(WEMACSVER)/$(WEMACSSITELISP) \
+         --datarootdir=$(WBUILDDIR)/emacs-$(WEMACSVER)/$(WEMACSDATAROOTDIR) \
        && make \
        && sed -i -e 's/"\/[^\n]\+/(expand-file-name "..\/var\/auctex" 
(file-name-directory load-file-name))/' tex-site.el \
        && make install
 # Create the package
        test -d $(FTPDIR) || mkdir -p $(FTPDIR)
+       rm -f $(FTPDIR)/$(WPACKAGE)
        cd $(WBUILDDIR)/emacs-$(WEMACSVER) \
        && zip -r $(FTPDIR)/$(WPACKAGE) $(WPACKAGEFILES)
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog   |    8 ++++++++
 Makefile.in |   45 +++++++++++++++++++++++----------------------
 2 files changed, 31 insertions(+), 22 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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