mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
90e8cce41e
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.
14 lines
296 B
Bash
Executable File
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"
|