From f1159bcf3a6aa1ee881b1a7a6f0b9c61eea2d6c3 Mon Sep 17 00:00:00 2001 From: Aleix Puig <94959119+aleixpuigb@users.noreply.github.com> Date: Tue, 12 Nov 2024 14:28:51 +0000 Subject: [PATCH] Generate the release diff with the OAK output (#3377) * Generate the release diff with the OAK output Fixes issues with reaching the limit number of characters in the release notes * Move diff_release_oak target to diffs/Makefile. Move the rule that produces the $(REPORTSDIR)/diff_release_oak.md diff file to the dedicated diffs/Makefile, and add it to the `all` target of that Makefile so that the new diff is automatically generated as part of the `release-diff` target. --------- Co-authored-by: Damien Goutte-Gattat --- src/ontology/diffs/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ontology/diffs/Makefile b/src/ontology/diffs/Makefile index ea7384c6a..c2ec34425 100644 --- a/src/ontology/diffs/Makefile +++ b/src/ontology/diffs/Makefile @@ -4,9 +4,10 @@ SRC = ../../../$(ONT)-base.obo OWLSRC = ../../../$(ONT)-base.owl LAST = $(OBO)/$(ONT)/$(ONT)-base.obo OWLLAST = $(OBO)/$(ONT)/$(ONT)-base.owl +REPORTDIR = ../reports #all: $(ONT)-obo-diff.html $(ONT)-def-diff.html $(ONT)-lastbuild.obo $(ONT)-combined-diff.txt $(ONT)-diff.md -all: $(ONT)-diff.md +all: $(ONT)-diff.md $(REPORTDIR)/diff_release_oak.md $(ONT)-combined-diff.txt: $(ONT)-def-diff.html $(ONT)-obo-diff.html cat $(ONT)-def-diff.txt $(ONT)-obo-diff.txt > $@ @@ -23,3 +24,7 @@ $(ONT)-diff.md: $(ONT)-lastbuild.owl $(OWLSRC) $(ONT)-diff.txt: $(ONT)-lastbuild.owl $(OWLSRC) robot diff --labels true -f plain -l $< -r $(OWLSRC) -o $@ +$(REPORTDIR)/diff_release_oak.md: $(ONT)-lastbuild.obo + runoak -i simpleobo:$(ONT)-lastbuild.obo \ + diff -X simpleobo:$(SRC) \ + -o $@ --output-type md