Skip to content

Commit

Permalink
Merge pull request #138 from britto/simpler-shell-scripting
Browse files Browse the repository at this point in the history
Bring readlink back
  • Loading branch information
josevalim committed Mar 1, 2012
2 parents 755cd7f + a729c2d commit cbaf641
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/elixir
Expand Up @@ -17,6 +17,6 @@ if [ $# -eq 0 ]; then
exit 1 exit 1
fi 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 "$@" erl -pa $SCRIPT_PATH/../ebin $SCRIPT_PATH/../exbin -noshell -noinput $ELIXIR_ERL_OPTS -s elixir start -extra "$@"
3 changes: 2 additions & 1 deletion bin/elixirc
Expand Up @@ -17,5 +17,6 @@ if [ $# -eq 0 ]; then
exit 1 exit 1
fi fi


SCRIPT_PATH=`dirname $0` SELF=`readlink $0 || echo $0`
SCRIPT_PATH=`dirname $SELF`
$SCRIPT_PATH/elixir +compile "$@" $SCRIPT_PATH/elixir +compile "$@"
3 changes: 2 additions & 1 deletion bin/iex
@@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
SCRIPT_PATH=`dirname $0` SELF=`readlink $0 || echo $0`
SCRIPT_PATH=`dirname $SELF`
$SCRIPT_PATH/elixir --no-stop -e "Elixir::IEx.start" "$@" $SCRIPT_PATH/elixir --no-stop -e "Elixir::IEx.start" "$@"

0 comments on commit cbaf641

Please sign in to comment.