mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
Add script to make SPDX bindings
Adds a script to generate the SPDX code bindings (From OE-Core rev: f0a5fdf54f975f9bc30758aec1f6f27e2d8149de) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
2e59418325
commit
dfa892cfa6
12
scripts/contrib/make-spdx-bindings.sh
Executable file
12
scripts/contrib/make-spdx-bindings.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
THIS_DIR="$(dirname "$0")"
|
||||
|
||||
VERSION="3.0.1"
|
||||
|
||||
shacl2code generate --input https://spdx.org/rdf/$VERSION/spdx-model.ttl \
|
||||
--input https://spdx.org/rdf/$VERSION/spdx-json-serialize-annotations.ttl \
|
||||
--context https://spdx.org/rdf/$VERSION/spdx-context.jsonld \
|
||||
python -o $THIS_DIR/../../meta/lib/oe/spdx30.py
|
||||
Reference in New Issue
Block a user