add proper clean script

This commit is contained in:
Lance Vick 2020-07-17 18:02:22 -07:00
parent c328c928ea
commit 4904c3f8d1
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 4 additions and 2 deletions

View File

@ -5,5 +5,7 @@ set -e; source environment
build_dir="${BUILD_DIR?}"
release_dir="${RELEASE_DIR?}"
[ -d "${build_dir}" ] && rm -rf ${build_dir}/*
[ -d "${release_dir}" ] && rm -rf ${release_dir}/*
[ -d "${build_dir}/buildroot" ] && (cd ${build_dir}/buildroot && make clean)
[ -d "${build_dir}/heads" ] && (cd ${build_dir}/heads && make real.clean)
[ -d "${build_dir}/buildroot-ccache" ] && rm -rf ${build_dir}/buildroot-ccache
[ -d "${release_dir}" ] && rm -rf ${release_dir}/develop