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.

19 line
418 B

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