diff options
author | Mark Allen <[email protected]> | 2017-02-12 06:37:44 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2017-02-12 06:37:44 +0000 |
commit | f36d2752e84c472703586a2b0d94fa19d6ebdbbf (patch) | |
tree | 41bd9582ac3168f6dec979181666586eb23d8575 | |
parent | 6484ea162c01e88192018f1d8d636534f721b621 (diff) | |
parent | 2bbbebed9ff8e0055a55023fbe015f1b127217cd (diff) | |
download | kerl-f36d2752e84c472703586a2b0d94fa19d6ebdbbf.tar.gz kerl-f36d2752e84c472703586a2b0d94fa19d6ebdbbf.tar.bz2 kerl-f36d2752e84c472703586a2b0d94fa19d6ebdbbf.zip |
Merge pull request #181 from kerl/fix-build_plt
Attempt a more accurate way to get apps for dialyzer PLT building
-rwxr-xr-x | kerl | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -946,8 +946,9 @@ build_plt() plt=$dialyzerd/plt build_log=$dialyzerd/build.log dialyzer=$1/bin/dialyzer - apps=`ls -1 $1/lib | cut -d- -f1 | grep -Ev 'erl_interface|jinterface' | xargs echo` - $dialyzer --output_plt $plt --build_plt --apps $apps > $build_log 2>&1 + dirs=`find $1/lib -maxdepth 2 -name ebin -type d -exec dirname {} \;` + apps=`for app in $dirs; do basename $app | cut -d- -f1 ; done | grep -Ev 'erl_interface|jinterface' | xargs echo` + $dialyzer --output_plt $plt --build_plt --apps $apps >> $build_log 2>&1 status=$? if [ $status -eq 0 -o $status -eq 2 ]; then echo "Done building $plt" |