blob: ca0f733898b94a26b2813b3884ea50f3cf24b7dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env bash
# risc-v-gsp-rm-debugger launcher: run the package from this directory without installation.
# Status: implemented, documented and tested (audit docs/27-TOOL-AUDIT.md; value demos docs/25-VALUE-VALIDATION.md).
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export PYTHONPATH="$HERE${PYTHONPATH:+:$PYTHONPATH}"
export GREENEYE_DUMPS="${GREENEYE_DUMPS:-$HERE/dumps}"
# `triage` is the harness entry point for the new-version workflow (docs/40);
# everything else is the greeneye package CLI.
if [[ "${1:-}" == "triage" ]]; then
shift
exec python3 "$HERE/harness/triage.py" "$@"
fi
exec python3 -m greeneye "$@"
|