You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 line
422 B

  1. #!/bin/bash
  2. ## Check path for exiting rebar instance -- if it's around, use it
  3. ## for compilation (NOT installation!)
  4. `which -s rebar`
  5. if [ $? == 0 ]; then
  6. rebar compile ${@}
  7. else
  8. ## Use raw erlc..
  9. erlc -I include -o ebin src/*.erl
  10. fi
  11. if [ $? != 0 ]; then
  12. exit $?
  13. fi
  14. ## Use application installer to perform actual installation
  15. ## into erlang distro
  16. export ERL_LIBS=`(cd .. && pwd)`
  17. priv/rebar install ${@}