Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

20 lignes
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 ${@}