[#47] Prevent deletion of external dependencies for TPM 2.0 Provisioner (#48)

This commit is contained in:
apldev3 2018-11-07 10:45:42 -05:00 committed by apldev4
parent f769da4b15
commit f8b9dfe582
3 changed files with 21 additions and 12 deletions

View File

@ -1,10 +1,5 @@
task cleanup() { task cleanup(type: Delete) {
delete 'build' delete fileTree(dir: 'build', exclude: 'lib/')
}
task prep(type: Exec) {
workingDir './'
commandLine 'mkdir', 'build'
} }
task cmake(type: Exec) { task cmake(type: Exec) {
@ -18,7 +13,7 @@ task make(type: Exec) {
} }
task fullBuild(type: GradleBuild) { task fullBuild(type: GradleBuild) {
tasks = ['cleanup', 'prep', 'cmake', 'make'] tasks = ['cleanup', 'cmake', 'make']
} }
build.dependsOn tasks.fullBuild build.dependsOn tasks.fullBuild

View File

@ -12,8 +12,15 @@ fi
cd $( dirname "${BASH_SOURCE[0]}" ) cd $( dirname "${BASH_SOURCE[0]}" )
# Ensure clean build environment # Ensure clean build environment
rm -rf BUILD shopt -s extglob
mkdir BUILD # Delete everything but downloaded dependencies
rm -rf BUILD/!(lib)
shopt -u extglob
# Make BUILD directory if it doesn't already exist
if [ ! -d "BUILD" ]; then
mkdir BUILD
fi
# Navigate to build directory # Navigate to build directory
cd BUILD cd BUILD

View File

@ -12,8 +12,15 @@ fi
cd $( dirname "${BASH_SOURCE[0]}" ) cd $( dirname "${BASH_SOURCE[0]}" )
# Ensure clean build environment # Ensure clean build environment
rm -rf BUILD shopt -s extglob
mkdir BUILD # Delete everything but downloaded dependencies
rm -rf BUILD/!(lib)
shopt -u extglob
# Make BUILD directory if it doesn't already exist
if [ ! -d "BUILD" ]; then
mkdir BUILD
fi
# Navigate to build directory # Navigate to build directory
cd BUILD cd BUILD