Files
revng-revng/scripts/generate-project-mixins.sh
Giacomo Vercesi 90e8cce41e model: rework python mixin infrastructure
Rework the python mixin infrastructure for the model. Mixins are now
specified explicitly instead of using the `ast` module. The mixins are
loaded relative to the generated python file, this allows to have two
models: `revng.model` and `revng.project.model`. The latter is augmented
via mixins to have project-specific facilities such as `get_artifact`
and artifact accessors.
2026-04-10 11:45:12 +02:00

14 lines
296 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
#
# This file is distributed under the MIT License. See LICENSE.md for details.
#
SCRIPT_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
INPUT=$1
OUTPUT=$2
./bin/revng2 project dump-pipeline | \
"$SCRIPT_DIR/generate-project-mixins.py" -o "$OUTPUT" "$INPUT"