Skip to content

Commit

Permalink
Use the variable in the scan-build install script.
Browse files Browse the repository at this point in the history
  • Loading branch information
padenot committed Jul 29, 2016
1 parent a8b016f commit b42cac7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scan-build-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ CLANG_CHECKER_NAME=checker-278

cd ~

if [ ! -d checker-278 ]
if [ ! -d ~/$CLANG_CHECKER_NAME ]
then
curl http://clang-analyzer.llvm.org/downloads/checker-278.tar.bz2 -o ~/$CLANG_CHECKER_NAME.tar.bz2
curl http://clang-analyzer.llvm.org/downloads/$CLANG_CHECKER_NAME.tar.bz2 -o ~/$CLANG_CHECKER_NAME.tar.bz2
tar -xf ~/$CLANG_CHECKER_NAME.tar.bz2
fi

export SCAN_BUILD_PATH=~/$CLANG_CHECKER_NAME/bin/scan-build
export PATH=$PATH:$SCAN_BUILD_PATH/bin

cd -

0 comments on commit b42cac7

Please sign in to comment.