3 dname
(){ (cd $1 ; pwd); }
4 bdname
(){ basename `dname $1`; }
6 # if our module lives here;
8 # we add these to include/load paths, respectively;
11 # note: the load path is used to resolve the -include_lib()"
16 if [ `dname $2` == "$HOME" ]; then echo -n ""
18 # $HOME/bla/foo.erl or /bla/foo.erl
19 elif [ `bdname $2/..` == "$HOME" -o `bdname $2/..` == "/" ]; then echo -n ""
21 # $HOME/bla/src/foo.erl or /bla/src/foo.erl
22 elif [ `bdname $2/../..` == "HOME" -o `bdname $2/../..` == "/" ]; then
27 # $HOME/lib/app/src/foo.erl or /erlang/app/src/foo.erl
30 for i
in $top/*/include
; do
33 for e
in $top/*/ebin
; do
40 erlc
-o $OUT $Is $PAs -Wall $1 |
grep -v "list comprehension has no gene"