Skip to content

Commit c908911

Browse files
committed
Don't make a note unless necessary
1 parent 64b5ddf commit c908911

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

setup-note.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ if ! wgmeta "$wg"; then
5050
wg=""
5151
fi
5252

53+
{
5354
echo '<note title="Discussion Venues" removeInRFC="true">'
5455
if [[ -n "$wg" ]]; then
5556
echo "<t>Discussion of this document takes place on the
@@ -59,3 +60,4 @@ fi
5960
echo "<t>Source for this draft and an issue tracker can be found at
6061
<eref target=\"https://${host}/${user}/${repo}\"/>.</t>"
6162
echo '</note>'
63+
} > .note.xml

setup.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ README.md: $(LIBDIR)/setup-readme.sh $(drafts_xml) $(filter %.md, $(TEMPLATE_FIL
9393

9494
.PHONY: setup-note
9595
setup-note: $(LIBDIR)/setup-note.sh
96-
$(LIBDIR)/setup-note.sh $(GITHUB_HOST) $(GITHUB_USER) $(GITHUB_REPO) $(drafts_source) >.note.xml
96+
$(LIBDIR)/setup-note.sh $(GITHUB_HOST) $(GITHUB_USER) $(GITHUB_REPO) $(drafts_source)
9797
if [ -s .note.xml ]; then git add .note.xml; fi
9898

9999
.github/CODEOWNERS: $(LIBDIR)/setup-codeowners.py $(drafts_xml) $(DEPS_FILES)

0 commit comments

Comments
 (0)