[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 904dfef 21/36: Fix structure of the package for
From: |
Stefan Monnier |
Subject: |
[elpa] externals/auctex 904dfef 21/36: Fix structure of the package for Windows. |
Date: |
Fri, 28 Nov 2014 17:25:47 +0000 |
branch: externals/auctex
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.
---
ChangeLog | 8 ++++++++
Makefile.in | 45 +++++++++++++++++++++++----------------------
2 files changed, 31 insertions(+), 22 deletions(-)
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)
- [elpa] externals/auctex af12165 16/36: Add new `ifluatex.el' style, (continued)
- [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, 2014/11/28
- [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 <=
- [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
- [elpa] externals/auctex 58bd866 28/36: Fix indentation in LaTeX-env-figure in a corner case., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex e1ec6a0 33/36: Make second argument of LaTeX-label optional., Stefan Monnier, 2014/11/28