選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

19 行
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 ${@}