branch: elpa/multiple-cursors
commit 07b88080b1c5890f21a86db2247aeb3d29084479
Merge: e7605bb dc0aa99
Author: Magnar Sveen <[email protected]>
Commit: Magnar Sveen <[email protected]>
Merge pull request #43 from purcell/travis-script
Simplify travis script, and make it work when ECUKES_EMACS has spaces
---
run-travis-ci.sh | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/run-travis-ci.sh b/run-travis-ci.sh
index 2af9086..f48064a 100755
--- a/run-travis-ci.sh
+++ b/run-travis-ci.sh
@@ -1,20 +1,12 @@
-#!/bin/sh
+#!/bin/sh -e
cd "$(dirname "$0")"
-set_default () {
- eval "
-if [ -z \$$1 ]; then
- $1=$2
-fi
-"
-}
-
-set_default ECUKES_EMACS "$(which emacs)"
+ECUKES_EMACS=${ECUKES_EMACS:-$(which emacs)}
echo "*** Emacs version ***"
-echo "ECUKES_EMACS =" $(which $ECUKES_EMACS)
-$ECUKES_EMACS --version
+echo "ECUKES_EMACS = $ECUKES_EMACS"
+"$ECUKES_EMACS" --version
echo
exec ./util/ecukes/ecukes --graphical