Skip to content

Commit f732c61

Browse files
committed
mk/yank.mk rename git branch master to main
these days main is the default on github. add new version number to git commit message; post-publish push after merging to main Signed-off-by: Antony Antony <antony@phenome.org>
1 parent 5fc8845 commit f732c61

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

mk/yang.mk

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,19 @@ git-clean-check:
2727

2828
.PHONY: publish
2929
publish: git-clean-check $(VBASE).xml $(VBASE).txt $(VBASE).html
30-
# if [ -f $(PBASE).xml ]; then echo "$(PBASE).xml already present, increment version?"; exit 1; fi
31-
# cp $(VBASE).xml $(VBASE).txt $(VBASE).html publish
32-
# git checkout -b $(PBRANCH)
33-
# git tag -m "yank.mk publish-$(DTYPE)-$(VERSION)" bp-$(PBRANCH)
34-
# git push -f --tags
35-
# git add $(PBASE).xml $(PBASE).txt $(PBASE).html
36-
# git commit -m "yank.mk publish-$(DTYPE)-$(VERSION)"
37-
# git push origin $(PBRANCH)
38-
# git checkout main
30+
if [ -f $(PBASE).xml ]; then echo "$(PBASE).xml already present, increment version?"; exit 1; fi
31+
cp $(VBASE).xml $(VBASE).txt $(VBASE).html publish
32+
git checkout -b $(PBRANCH)
33+
git tag -m "yank.mk publish-$(DTYPE)-$(VERSION)" bp-$(PBRANCH)
34+
git push -f --tags
35+
git add $(PBASE).xml $(PBASE).txt $(PBASE).html
36+
git commit -m "yank.mk publish-$(DTYPE)-$(VERSION)"
37+
git push origin $(PBRANCH)
38+
git checkout main
3939
git merge --ff-only $(PBRANCH)
4040
sed -i -e 's/\#+RFC_VERSION: *\([0-9]*\)/\#+RFC_VERSION: $(NEXT_VERSION)/' $(ORG)
41-
git commit -am "yank.mk new version post-publish"
41+
git commit -am "yank.mk new version -$(NEXT_VERSION) post-publish"
42+
git push origin
4243

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

0 commit comments

Comments
 (0)