Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #138 from britto/simpler-shell-scripting

Bring readlink back
  • Loading branch information...
commit cbaf6417f705cd9de296e028086cfd40e9520675 2 parents 755cd7f + a729c2d
@josevalim josevalim authored
Showing with 6 additions and 4 deletions.
  1. +2 −2 bin/elixir
  2. +2 −1  bin/elixirc
  3. +2 −1  bin/iex
View
4 bin/elixir
@@ -17,6 +17,6 @@ if [ $# -eq 0 ]; then
exit 1
fi
-SCRIPT_PATH=`dirname $0`
-
+SELF=`readlink $0 || echo $0`
+SCRIPT_PATH=`dirname $SELF`
erl -pa $SCRIPT_PATH/../ebin $SCRIPT_PATH/../exbin -noshell -noinput $ELIXIR_ERL_OPTS -s elixir start -extra "$@"
View
3  bin/elixirc
@@ -17,5 +17,6 @@ if [ $# -eq 0 ]; then
exit 1
fi
-SCRIPT_PATH=`dirname $0`
+SELF=`readlink $0 || echo $0`
+SCRIPT_PATH=`dirname $SELF`
$SCRIPT_PATH/elixir +compile "$@"
View
3  bin/iex
@@ -1,3 +1,4 @@
#!/bin/sh
-SCRIPT_PATH=`dirname $0`
+SELF=`readlink $0 || echo $0`
+SCRIPT_PATH=`dirname $SELF`
$SCRIPT_PATH/elixir --no-stop -e "Elixir::IEx.start" "$@"
Please sign in to comment.
Something went wrong with that request. Please try again.