diff options
author | Paul Adenot <[email protected]> | 2016-07-29 14:57:15 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2016-07-29 14:57:18 +0200 |
commit | b42cac7ea7219e99ba53fc731a04f03baf1466cf (patch) | |
tree | 92d3e46519b27b8bd11b31bd5a98371b60bb2cdf /scan-build-install.sh | |
parent | a8b016f197d6354894c1c05a5d08450194207eff (diff) | |
download | cubeb-b42cac7ea7219e99ba53fc731a04f03baf1466cf.tar.gz cubeb-b42cac7ea7219e99ba53fc731a04f03baf1466cf.zip |
Use the variable in the scan-build install script.
Diffstat (limited to 'scan-build-install.sh')
-rwxr-xr-x | scan-build-install.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scan-build-install.sh b/scan-build-install.sh index 83c8b77..3e1b496 100755 --- a/scan-build-install.sh +++ b/scan-build-install.sh @@ -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 - |