Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Joshua Watt <jpewhacker@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Joshua Watt <JPEWhacker@gmail.com>
Subject: [OE-core][PATCH 4/4] Add script to make SPDX bindings
Date: Fri, 27 Sep 2024 09:51:57 -0600	[thread overview]
Message-ID: <20240927155247.1012846-5-JPEWhacker@gmail.com> (raw)
In-Reply-To: <20240927155247.1012846-1-JPEWhacker@gmail.com>

Adds a script to generate the SPDX code bindings

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 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.46.0



  parent reply	other threads:[~2024-09-27 15:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-27 15:51 [OE-core][PATCH 0/4] SPDX 3.0 improvements Joshua Watt
2024-09-27 15:51 ` [OE-core][PATCH 1/4] spdx 3.0: Find local sources when searching for debug sources Joshua Watt
2024-09-27 15:51 ` [OE-core][PATCH 2/4] spdx 3.0: Map gitsm URI to git Joshua Watt
2024-09-27 15:51 ` [OE-core][PATCH 3/4] create-spdx-3.0: Upgrade to SPDX 3.0.1 Joshua Watt
2024-09-27 16:02   ` Ross Burton
2024-09-27 18:26     ` Joshua Watt
2024-09-27 16:08   ` Patchtest results for " patchtest
2024-09-27 15:51 ` Joshua Watt [this message]
2024-09-27 16:08   ` Patchtest results for [OE-core][PATCH 4/4] Add script to make SPDX bindings patchtest

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240927155247.1012846-5-JPEWhacker@gmail.com \
    --to=jpewhacker@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox