Re: Patch to makefile-temp

2014-06-02 Thread Vincent Belaïche
Sorry for the mistake, my intention was to send the diff file, not the
modified makefile-temp.

 Hello,
 
 Not sure whether I have ever submitted this. This patch is supposed to
 smooth installation from repo with Windows + MSYS, without any border
 effect when MSYS is not there. Backward compatility is ensured by
 testing environment variable OSTYPE to be msys --- which is supposed to
 be the case under MSYS.
 
 VBR,
Vincent.

diff --git a/lisp/makefile-temp b/lisp/makefile-temp
index 48daf1d..ecfa0c7 100644
--- a/lisp/makefile-temp
+++ b/lisp/makefile-temp
@@ -23,6 +23,14 @@
 # This file can compile BBDB's lisp code on most systems.  Yet it is not
 # intended to be foolproof!
 
+# For building under MSYS export OSTYPE to msys
+
+ifeq ($(OSTYPE),msys)
+  cur_dir=$(shell pwd -W | sed 's!/!!g')
+else
+  cur_dir=$(CURDIR)
+endif
+
 srcdir = .
 prefix = /usr/local
 lispdir = $(DESTDIR)/usr/local/share/emacs/site-lisp/bbdb
@@ -87,9 +95,9 @@ bbdb-loaddefs.el: $(SRCS)
 #  Generated autoload-file must have an absolute path,
 #  $(srcdir) can be relative.
$(emacs) -l autoload \
-   --eval '(setq generated-autoload-file '`pwd`/$@')' \
+   --eval '(setq generated-autoload-file $(cur_dir)\\$@)' \
--eval '(setq make-backup-files nil)' \
-   -f batch-update-autoloads `pwd`
+   -f batch-update-autoloads $(cur_dir)
 
 .PHONY: no-bbdb-loaddefs
 no-bbdb-loaddefs:
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Re: Patch to makefile-temp

2014-06-02 Thread Roland Winkler
On Mon Jun 2 2014 Vincent Belaïche wrote:
 - --eval '(setq generated-autoload-file '`pwd`/$@')' \
 + --eval '(setq generated-autoload-file $(cur_dir)\\$@)' \

How is the backslash supposed to work on unix-like systems?
Am I missing something?

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/