From f64a8ee533a6f1a06bd0452d7dd9ddd5a47ca40a Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sun, 24 Aug 2008 12:07:39 -0400 Subject: [PATCH] libsde.in: Enahanced to export $ECHO_E, as ubuntu's /bin/sh doesn't support `echo -e` and we want to work on systems where bash isn't /bin/sh --- lib/libsde.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/libsde.in b/lib/libsde.in index ac34cdd..635bfda 100644 --- a/lib/libsde.in +++ b/lib/libsde.in @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: lib/libsde.in -# Copyright (C) 2006 - 2007 The OpenSDE Project +# Copyright (C) 2006 - 2008 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -32,6 +32,14 @@ if [ ! -e "$SDESETTINGS" ]; then chmod 600 "$SDESETTINGS" fi +# how to `echo -e` on this /bin/sh +# +if [ "$(echo -e foo)" = "foo" ]; then + export ECHO_E="echo -e" +else + export ECHO_E="echo" +fi + # LOCK/UNLOCK facility # # FIXME: we must trap Ctrl-C on lock(), and restore the previous