Procházet zdrojové kódy

Use existing rebar for compile, if it's available

pull/3/head
Dave Smith před 15 roky
rodič
revize
849cdc5ef0
1 změnil soubory, kde provedl 9 přidání a 3 odebrání
  1. +9
    -3
      install

+ 9
- 3
install Zobrazit soubor

@ -3,11 +3,17 @@
# Fail on first error
set -e
## Compile
erlc -I include -o ebin src/*.erl
## Check path for exiting rebar instance -- if it's around, use it
## for compilation (NOT installation!)
`which -s rebar`
if [ $? == 0 ]; then
rebar compile ${@}
else
## Use raw erlc..
erlc -I include -o ebin src/*.erl
fi
## Use application installer to perform actual installation
## into erlang distro
export ERL_LIBS=`(cd .. && pwd)`
echo $ERL_LIBS
priv/rebar install ${@}

Načítá se…
Zrušit
Uložit