Browse Source

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

karasz/new-early
Alejandro Mery 17 years ago
parent
commit
f64a8ee533
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      lib/libsde.in

+ 9
- 1
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

Loading…
Cancel
Save