aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Copley2013-06-07 11:08:29 +0300
committerEli Zaretskii2013-06-07 11:08:29 +0300
commit6c0a9ed1b100c4dfbac327e6405396f1586267eb (patch)
tree5376e993227b6999d5ae1a33a6124dec1e338670
parentefb860883d622f9e440ddbc0b610bd2f0a1a4aec (diff)
downloademacs-6c0a9ed1b100c4dfbac327e6405396f1586267eb.tar.gz
emacs-6c0a9ed1b100c4dfbac327e6405396f1586267eb.zip
Fix bug #14513 with --enable-locallisppath not working on MS-Windows.
Makefile.in (msys_to_w32): Modify to support d:\foo file names. (msys_lisppath_to_w32, msys_prefix_subst, msys_sed_sh_escape): New variables. (epaths-force-w32): Use them. epaths.nt (PATH_SITELOADSEARCH): Fix commentary. epaths.in: Fix commentary to PATH_SITELOADSEARCH.
-rw-r--r--ChangeLog7
-rw-r--r--Makefile.in27
-rw-r--r--nt/ChangeLog4
-rw-r--r--nt/epaths.nt6
-rw-r--r--src/ChangeLog4
-rw-r--r--src/epaths.in6
6 files changed, 46 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 2f5f932a559..b72a9544a96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
12013-06-07 Richard Copley <rcopley@gmail.com> (tiny change)
2
3 * Makefile.in (msys_to_w32): Modify to support d:\foo file names.
4 (msys_lisppath_to_w32, msys_prefix_subst, msys_sed_sh_escape): New
5 variables.
6 (epaths-force-w32): Use them.
7
12013-06-03 Michael Albinus <michael.albinus@gmx.de> 82013-06-03 Michael Albinus <michael.albinus@gmx.de>
2 9
3 * configure.ac (HAVE_GFILENOTIFY): Check for gio >= 2.24. 10 * configure.ac (HAVE_GFILENOTIFY): Check for gio >= 2.24.
diff --git a/Makefile.in b/Makefile.in
index 583aa99f83d..de406453983 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -318,14 +318,37 @@ epaths-force: FRC
318 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";') && \ 318 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";') && \
319 ${srcdir}/build-aux/move-if-change epaths.h.$$$$ src/epaths.h 319 ${srcdir}/build-aux/move-if-change epaths.h.$$$$ src/epaths.h
320 320
321# Convert MSYS-style /x/foo file name into x:/foo that Windows can grok. 321# Convert MSYS-style /x/foo or Windows-style x:\foo file names
322msys_to_w32=sed -e 's,^/\([A-Za-z]\)/,\1:/,' 322# into x:/foo that Windows can grok.
323msys_to_w32=sed -e 's,\\\\,/,g' -e 's,^/\([A-Za-z]\)/,\1:/,'
324
325# Transform directory search path and its components. Original can
326# be MSYS or Windows style. Set path separator to ";", directory
327# separator to "/" and transform MSYS-style "/c/" to "c:/".
328# Remove empty path components and escape semicolons.
329msys_lisppath_to_w32=sed -e 's,\\\\,/,g' \
330 -e 's,\(^\|[:;]\)\([A-Za-z]\):/,\1/\2/,g' \
331 -e 's/:/;/g' -e 's,\(^\|;\)/\([A-Za-z]\)/,\1\2:/,g' \
332 -e 's/;\+/;/g' -e 's/^;//' -e 's/;$$//' -e 's/;/\\\\;/g'
333
334# Replace "${prefix}" with '%emacs_dir%' (which expands to install
335# directory at runtime).
336msys_prefix_subst=sed -e 's!\(^\|;\)'"$${prefixpattern}"'\([;/]\|$$\)!\1%emacs_dir%\2!g'
337
338# Quote Sed special characters (except backslash and newline) with
339# a double backslash.
340msys_sed_sh_escape=sed -e 's/[];$$*.^[]/\\\\&/g'
323 341
324# The w32 build needs a slightly different editing, and it uses 342# The w32 build needs a slightly different editing, and it uses
325# nt/epaths.nt as the template. 343# nt/epaths.nt as the template.
344# Use the value of ${locallisppath} supplied by `configure',
345# to support the --enable-locallisppath argument.
326epaths-force-w32: FRC 346epaths-force-w32: FRC
327 @(w32srcdir=`echo "${srcdir}" | ${msys_to_w32}` ; \ 347 @(w32srcdir=`echo "${srcdir}" | ${msys_to_w32}` ; \
348 prefixpattern=`echo '${prefix}' | ${msys_to_w32} | ${msys_sed_sh_escape}` ; \
349 locallisppath=`echo '${locallisppath}' | ${msys_lisppath_to_w32} | ${msys_prefix_subst}` ; \
328 sed < ${srcdir}/nt/epaths.nt > epaths.h.$$$$ \ 350 sed < ${srcdir}/nt/epaths.nt > epaths.h.$$$$ \
351 -e 's;\(#.*PATH_SITELOADSEARCH\).*$$;\1 "'"$${locallisppath}"'";' \
329 -e '/^.*#/s/@VER@/${version}/g' \ 352 -e '/^.*#/s/@VER@/${version}/g' \
330 -e '/^.*#/s/@CFG@/${configuration}/g' \ 353 -e '/^.*#/s/@CFG@/${configuration}/g' \
331 -e "/^.*#/s|@SRC@|$${w32srcdir}|g") && \ 354 -e "/^.*#/s|@SRC@|$${w32srcdir}|g") && \
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 41f6d81d592..5ed4dd2388c 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,7 @@
12013-06-07 Richard Copley <rcopley@gmail.com> (tiny change)
2
3 * epaths.nt (PATH_SITELOADSEARCH): Fix commentary.
4
12013-06-03 Eli Zaretskii <eliz@gnu.org> 52013-06-03 Eli Zaretskii <eliz@gnu.org>
2 6
3 * config.nt: Add HAVE_GFILENOTIFY, HAVE_W32NOTIFY and USE_FILE_NOTIFY. 7 * config.nt: Add HAVE_GFILENOTIFY, HAVE_W32NOTIFY and USE_FILE_NOTIFY.
diff --git a/nt/epaths.nt b/nt/epaths.nt
index 1e418550d52..6e297476528 100644
--- a/nt/epaths.nt
+++ b/nt/epaths.nt
@@ -41,10 +41,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
41#define PATH_LOADSEARCH "%emacs_dir%/share/emacs/@VER@/lisp;%emacs_dir%/share/emacs/@VER@/leim" 41#define PATH_LOADSEARCH "%emacs_dir%/share/emacs/@VER@/lisp;%emacs_dir%/share/emacs/@VER@/leim"
42 42
43/* Like PATH_LOADSEARCH, but contains the non-standard pieces. 43/* Like PATH_LOADSEARCH, but contains the non-standard pieces.
44 These are the site-lisp directories, typically something like 44 These are the site-lisp directories. Configure sets this to
45 ${locallisppath}, which typically defaults to something like:
45 <datadir>/emacs/VERSION/site-lisp:<datadir>/emacs/site-lisp 46 <datadir>/emacs/VERSION/site-lisp:<datadir>/emacs/site-lisp
46 Configure prepends any $locallisppath, as set by the 47 but can be overridden by the --enable-locallisppath argument.
47 --enable-locallisppath argument.
48 This is combined with PATH_LOADSEARCH to make the default load-path. 48 This is combined with PATH_LOADSEARCH to make the default load-path.
49 If the --no-site-lisp option is used, this piece is excluded. 49 If the --no-site-lisp option is used, this piece is excluded.
50*/ 50*/
diff --git a/src/ChangeLog b/src/ChangeLog
index 5a25758c421..c104b23c75e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12013-06-07 Richard Copley <rcopley@gmail.com> (tiny change)
2
3 * epaths.in: Fix commentary to PATH_SITELOADSEARCH.
4
12013-06-06 Eli Zaretskii <eliz@gnu.org> 52013-06-06 Eli Zaretskii <eliz@gnu.org>
2 6
3 * xdisp.c (note_mouse_highlight): When mouse-highlight is off, 7 * xdisp.c (note_mouse_highlight): When mouse-highlight is off,
diff --git a/src/epaths.in b/src/epaths.in
index 0cf8cc9ce5b..1f5701e5337 100644
--- a/src/epaths.in
+++ b/src/epaths.in
@@ -30,10 +30,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
30 30
31 31
32/* Like PATH_LOADSEARCH, but contains the non-standard pieces. 32/* Like PATH_LOADSEARCH, but contains the non-standard pieces.
33 These are the site-lisp directories, typically something like 33 These are the site-lisp directories. Configure sets this to
34 ${locallisppath}, which typically defaults to something like:
34 <datadir>/emacs/VERSION/site-lisp:<datadir>/emacs/site-lisp 35 <datadir>/emacs/VERSION/site-lisp:<datadir>/emacs/site-lisp
35 Configure prepends any $locallisppath, as set by the 36 but can be overridden by the --enable-locallisppath argument.
36 --enable-locallisppath argument.
37 This is combined with PATH_LOADSEARCH to make the default load-path. 37 This is combined with PATH_LOADSEARCH to make the default load-path.
38 If the --no-site-lisp option is used, this piece is excluded. 38 If the --no-site-lisp option is used, this piece is excluded.
39*/ 39*/