From f0a5fdf54f975f9bc30758aec1f6f27e2d8149de Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Fri, 27 Sep 2024 09:51:57 -0600 Subject: [PATCH] Add script to make SPDX bindings Adds a script to generate the SPDX code bindings Signed-off-by: Joshua Watt Signed-off-by: Richard Purdie --- scripts/contrib/make-spdx-bindings.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/contrib/make-spdx-bindings.sh diff --git a/scripts/contrib/make-spdx-bindings.sh b/scripts/contrib/make-spdx-bindings.sh new file mode 100755 index 00000000000..31caaf339d3 --- /dev/null +++ b/scripts/contrib/make-spdx-bindings.sh @@ -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 -- 2.47.3