Skip to content

Commit 6e9530c

Browse files
committed
mk/yang.mk add REMOTE as variable instead of hardcoded origin
REMOTE can be set to other than origin to diganose "make publish" enable "git push" in "make publish" run "make publish" to create a new version to submit to IETF datatracker to run "make publish" "git push" must work first.
1 parent 300fd3f commit 6e9530c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mk/yang.mk

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ PBASE := publish/$(BASE)-$(VERSION)
99
VBASE := draft/$(BASE)-$(VERSION)
1010
LBASE := draft/$(BASE)-latest
1111
SHELL := /bin/bash
12+
REMOTE ?= origin
13+
1214

1315
# If you have docker you can avoid having to install anything by leaving this.
1416
ifeq ($(CIRCLECI),)
@@ -31,15 +33,15 @@ publish: git-clean-check $(VBASE).xml $(VBASE).txt $(VBASE).html
3133
cp $(VBASE).xml $(VBASE).txt $(VBASE).html publish
3234
git checkout -b $(PBRANCH)
3335
git tag -m "yank.mk publish-$(DTYPE)-$(VERSION)" bp-$(PBRANCH)
34-
# git push -f --tags
36+
git push -f --tags $(REMOTE)
3537
git add $(PBASE).xml $(PBASE).txt $(PBASE).html
3638
git commit -m "yank.mk publish-$(DTYPE)-$(VERSION)"
37-
# git push origin $(PBRANCH)
39+
git push $(REMOTE) $(PBRANCH)
3840
git checkout main
3941
git merge --ff-only $(PBRANCH)
4042
sed -i -e 's/\#+RFC_VERSION: *\([0-9]*\)/\#+RFC_VERSION: $(NEXT_VERSION)/' $(ORG)
4143
git commit -am "yank.mk new version -$(NEXT_VERSION) post-publish"
42-
# git push origin
44+
git push $(REMOTE)
4345

4446
#republish:
4547
# sed -i -e 's/\#+RFC_VERSION: *\([0-9]*\)/\#+RFC_VERSION: $(PREV_VERSION)/' $(ORG)

0 commit comments

Comments
 (0)