imported scripts from intellicastle project and adapted to bordercastle

This commit is contained in:
Leon Poyyayil 2025-10-25 08:02:34 +02:00
parent 6178c58132
commit dd07940e6a
29 changed files with 1744 additions and 2 deletions

View file

@ -0,0 +1,36 @@
#!/bin/bash
## -- FILE ------------------------------------------------------------------
## name : bordercastle-post-build-cleanup.sh
## project : BoarderZone: BorderCastle
## created : Leon Poyyayil - 2014-08-09
## language : Linux shell script
## environment: GNU bash
## copyright : (c) 1990-2025 by Leon Poyyayil (private), Switzerland
## license : Bouncy Castle License. see LICENSE
## --------------------------------------------------------------------------
# this script simply removes all stuff that has been created during a full build
SCRIPT_DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MAIN_DIR=$(readlink -f $( dirname "$SCRIPT_DIR") )
pushd $MAIN_DIR > /dev/null
. bordercastle.conf
for TARGET in light mail pg pkix prov tls util
do
echo "- boca-$TARGET ..."
rm -rf boca-$TARGET/src/ boca-$TARGET/target/ boca-$TARGET/pom.xml
if [ "$TARGET" == "test" ]; then
# remove generated test output files ...
rm -f boca-$TARGET/*
fi
rmdir boca-$TARGET
done
rm -rf private/patch/bouncycastle/*
rm -rf private/patch/bordercastle/*
rm pom.xml
popd >/dev/null
## -- EOF -------------------------------------------------------------------