Files
EndraApp/docs/_docs_tools/cleanup.sh
2025-09-15 14:32:21 +02:00

20 lines
409 B
Bash
Executable File

#!/bin/bash
# the absolute paths of this script and it's directory
SCRIPT_PATH=$(realpath -s "$0")
SCRIPT_DIR=$(dirname "$SCRIPT_PATH")
cd $SCRIPT_DIR
source ${SCRIPT_DIR}/paths.sh
rm -r $BUILD_DIR >/dev/null 2>&1
rm -r $API_REF_TEMPLATE/*.rst >/dev/null 2>&1
if [ "$1" = "--outputs" ]; then
echo "deleting outputs..."
rm -r $OUTPUT_FULL >/dev/null 2>&1
rm -r $OUTPUT_API >/dev/null 2>&1
fi
exit 0