Files
qurani/clean_rebuild.sh
2026-11-11 20:25:21 +01:00

17 lines
436 B
Bash
Executable File

#!/usr/bin/env bash
# Clean production build of the website and the API.
set -euo pipefail
PACKAGE_ONLY=0
for arg in "$@"; do
case "$arg" in
--package-only) PACKAGE_ONLY=1 ;;
*) echo "Unknown option: $arg" >&2; exit 2 ;;
esac
done
MODE=production
DO_CLEAN=1
export MODE DO_CLEAN PACKAGE_ONLY
# shellcheck source=scripts/build-common.sh
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/scripts/build-common.sh"
run_flow