Skip to content

Commit

Permalink
Generate the release diff with the OAK output (#3377)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
aleixpuigb and gouttegd authored Nov 12, 2024
1 parent 2f8ec39 commit f1159bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ontology/diffs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 > $@
Expand All @@ -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

0 comments on commit f1159bc

Please sign in to comment.