Skip to content

Commit

Permalink
chore(util) cleanup clang scans and de-archived downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Feb 22, 2024
1 parent dce2948 commit a961f3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/_lib.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
DIR_WORK=$NGX_WASM_DIR/work
DIR_BIN=$DIR_WORK/bin
DIR_SCANS=$DIR_WORK/scans
DIR_DOWNLOAD=$DIR_WORK/downloads
DIR_OPENSSL=$DIR_WORK/openssl
DIR_CPANM=$DIR_DOWNLOAD/cpanm
Expand Down Expand Up @@ -190,7 +191,7 @@ build_nginx() {

if [[ "$NGX_BUILD_CLANG_ANALYZER" == 1 ]]; then
build_name+=" clang-analyzer"
NGX_BUILD_CMD="scan-build -o $DIR_WORK/scans \
NGX_BUILD_CMD="scan-build -o $DIR_SCANS \
--exclude $DIR_WORK\
-analyze-headers \
--force-analyze-debug-code \
Expand Down
2 changes: 2 additions & 0 deletions util/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ if [[ -f "$DIR_PATCHED_ROOT/Makefile" ]]; then
fi

if [[ "$1" == "--all" || "$1" == "--more" ]]; then
find $DIR_DOWNLOAD/* -maxdepth 0 -type d | xargs rm -rf
rm -rf t/servroot* \
$DIR_SRC_ROOT \
$DIR_PATCHED_ROOT \
$DIR_BUILDROOT \
$DIR_PREFIX \
$DIR_SCANS \
$DIR_DIST_OUT \
$DIR_DIST_WORK \
$DIR_TESTS_LIB_WASM
Expand Down

0 comments on commit a961f3a

Please sign in to comment.