>From echo(1):
,----
| -e     enable interpretation of backslash escapes
`----
,----
| /bin/echo --version
| echo (GNU coreutils) 8.9
`----

`echo' is generally messy for portability as every shell/os has its own
ways to think of it, more or less POSIX compliant, which is the reason
for it being deprecated (not obsoleted though) in POSIX:
http://pubs.opengroup.org/onlinepubs/009695399/utilities/echo.html#tag_04_41_16
http://pubs.opengroup.org/onlinepubs/009695399/utilities/printf.html#tag_04_102_18

So here's a new patch:

--- a/Makefile	2011-01-17 14:17:43.000000000 +0100
+++ b/Makefile	2011-01-17 22:46:09.193559502 +0100
@@ -63,14 +63,14 @@
 all: Makefile bbdb autoloadsc vm
 
 # Makefile: Makefile.in
-# 	@echo "Makefile.in has changed, rerun configure!"
+# 	@printf "Makefile.in has changed, rerun configure!\n"
 # 	exit 1
 
 install-pkg: uninstall-pkg bbdb autoloadsc
 	@if test "x$(SYMLINKS)" = "xno" ; then                 \
           mkdir -p -m 0755 $(PACKAGEDIR)/lisp/bbdb;            \
           for i in `ls *.elc` ; do                             \
-            $(INSTALL_DATA) `echo $$i | sed 's/c$$//g'`        \
+            $(INSTALL_DATA) `printf "$$i\n" | sed 's/c$$//g'`        \
                             $(PACKAGEDIR)/lisp/bbdb ;          \
             $(INSTALL_DATA) $$i $(PACKAGEDIR)/lisp/bbdb ;      \
           done ;                                               \
@@ -87,10 +87,10 @@
 
 bbdb-autoloads.el: $(SRCS)
 	@-$(RM) $@;
-	@echo "(provide 'bbdb-autoloads)" > $@;
-	@echo "(if (and load-file-name (file-name-directory load-file-name))" >> $@;
-	@echo "    (add-to-list 'load-path (file-name-directory load-file-name)))\n" >> $@;
-	@echo "" >> $@;
+	@printf "(provide 'bbdb-autoloads)\n" > $@;
+	@printf "(if (and load-file-name (file-name-directory load-file-name))\n" >> $@;
+	@printf "    (add-to-list 'load-path (file-name-directory load-file-name)))\n\n" >> $@;
+	@printf "\n" >> $@;
 	@$(emacs) -batch -l autoload \
 		--eval '(setq generated-autoload-file "'`pwd`'/$@")' \
 		--eval '(setq make-backup-files nil)' \

-- 
Philipp Haselwarter
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to