From caa500094f554a2955641817d2396d0d392fdabb Mon Sep 17 00:00:00 2001 From: parrt Date: Tue, 13 Dec 2016 13:36:19 -0800 Subject: [PATCH] tweak docs to show 4.6 --- doc/releasing-antlr.md | 52 +++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/doc/releasing-antlr.md b/doc/releasing-antlr.md index cd7700fce..f2ec670ef 100644 --- a/doc/releasing-antlr.md +++ b/doc/releasing-antlr.md @@ -7,9 +7,9 @@ Create a pre-release or full release at github; [Example 4.5-rc-1](https://githu Wack any existing tag as mvn will create one and it fails if already there. ``` -$ git tag -d 4.5.2 -$ git push origin :refs/tags/4.5.2 -$ git push upstream :refs/tags/4.5.2 +$ git tag -d 4.6 +$ git push origin :refs/tags/4.6 +$ git push upstream :refs/tags/4.6 ``` ## Bump version @@ -146,24 +146,24 @@ It will start out by asking you the version number: ``` ... -What is the release version for "ANTLR 4"? (org.antlr:antlr4-master) 4.5.2: : 4.5.2 -What is the release version for "ANTLR 4 Runtime"? (org.antlr:antlr4-runtime) 4.5.2: : -What is the release version for "ANTLR 4 Tool"? (org.antlr:antlr4) 4.5.2: : -What is the release version for "ANTLR 4 Maven plugin"? (org.antlr:antlr4-maven-plugin) 4.5.2: : -What is the release version for "ANTLR 4 Runtime Test Generator"? (org.antlr:antlr4-runtime-testsuite) 4.5.2: : -What is the release version for "ANTLR 4 Tool Tests"? (org.antlr:antlr4-tool-testsuite) 4.5.2: : -What is SCM release tag or label for "ANTLR 4"? (org.antlr:antlr4-master) antlr4-master-4.5.2: : 4.5.2 -What is the new development version for "ANTLR 4"? (org.antlr:antlr4-master) 4.5.3-SNAPSHOT: +What is the release version for "ANTLR 4"? (org.antlr:antlr4-master) 4.6: : 4.6 +What is the release version for "ANTLR 4 Runtime"? (org.antlr:antlr4-runtime) 4.6: : +What is the release version for "ANTLR 4 Tool"? (org.antlr:antlr4) 4.6: : +What is the release version for "ANTLR 4 Maven plugin"? (org.antlr:antlr4-maven-plugin) 4.6: : +What is the release version for "ANTLR 4 Runtime Test Generator"? (org.antlr:antlr4-runtime-testsuite) 4.6: : +What is the release version for "ANTLR 4 Tool Tests"? (org.antlr:antlr4-tool-testsuite) 4.6: : +What is SCM release tag or label for "ANTLR 4"? (org.antlr:antlr4-master) antlr4-master-4.6: : 4.6 +What is the new development version for "ANTLR 4"? (org.antlr:antlr4-master) 4.6.1-SNAPSHOT: ... ``` -Maven will go through your pom.xml files to update versions from 4.5.2-SNAPSHOT to 4.5.2 for release and then to 4.5.3-SNAPSHOT after release, which is done with: +Maven will go through your pom.xml files to update versions from 4.6-SNAPSHOT to 4.6 for release and then to 4.6.1-SNAPSHOT after release, which is done with: ```bash mvn release:perform -Darguments="-DskipTests" ``` -Maven will use git to push pom.xml changes. (big smile) +Maven will use git to push pom.xml changes. Now, go here: @@ -176,11 +176,11 @@ and on the left click "Staging Repositories". You click the staging repo and clo Copy the jars to antlr.org site and update download/index.html ```bash -cp ~/.m2/repository/org/antlr/antlr4-runtime/4.5.2/antlr4-runtime-4.5.2.jar ~/antlr/sites/website-antlr4/download/antlr-runtime-4.5.2.jar -cp ~/.m2/repository/org/antlr/antlr4/4.5.2/antlr4-4.5.2.jar ~/antlr/sites/website-antlr4/download/antlr-4.5.2-complete.jar +cp ~/.m2/repository/org/antlr/antlr4-runtime/4.6/antlr4-runtime-4.6.jar ~/antlr/sites/website-antlr4/download/antlr-runtime-4.6.jar +cp ~/.m2/repository/org/antlr/antlr4/4.6/antlr4-4.6-complete.jar ~/antlr/sites/website-antlr4/download/antlr-4.6-complete.jar cd ~/antlr/sites/website-antlr4/download -git add antlr-4.5.2-complete.jar -git add antlr-runtime-4.5.2.jar +git add antlr-4.6-complete.jar +git add antlr-runtime-4.6.jar ``` Update on site: @@ -192,7 +192,7 @@ Update on site: * scripts/topnav.js ``` -git commit -a -m 'add 4.5.2 jars' +git commit -a -m 'add 4.6 jars' git push origin gh-pages ``` @@ -202,8 +202,8 @@ git push origin gh-pages ```bash cd runtime/JavaScript/src -zip -r /tmp/antlr-javascript-runtime-4.5.2.zip antlr4 -cp /tmp/antlr-javascript-runtime-4.5.2.zip ~/antlr/sites/website-antlr4/download +zip -r /tmp/antlr-javascript-runtime-4.6.zip antlr4 +cp /tmp/antlr-javascript-runtime-4.6.zip ~/antlr/sites/website-antlr4/download # git add, commit, push ``` @@ -211,7 +211,7 @@ Move target to website ```bash pushd ~/antlr/sites/website-antlr4/download -git add antlr-javascript-runtime-4.5.2.zip +git add antlr-javascript-runtime-4.6.zip git commit -a -m 'update JS runtime' git push origin gh-pages popd @@ -227,15 +227,15 @@ rm Antlr4.Runtime/obj/net20/Release/Antlr4.Runtime.dll # build xbuild /p:Configuration=Release Antlr4.Runtime/Antlr4.Runtime.mono.csproj # zip it up to get a version number on zip filename -zip --junk-paths /tmp/antlr-csharp-runtime-4.5.2.zip Antlr4.Runtime/bin/net35/Release/Antlr4.Runtime.dll -cp /tmp/antlr-csharp-runtime-4.5.2.zip ~/antlr/sites/website-antlr4/download +zip --junk-paths /tmp/antlr-csharp-runtime-4.6.zip Antlr4.Runtime/bin/net35/Release/Antlr4.Runtime.dll +cp /tmp/antlr-csharp-runtime-4.6.zip ~/antlr/sites/website-antlr4/download ``` Move target to website ```bash pushd ~/antlr/sites/website-antlr4/download -git add antlr-csharp-runtime-4.5.2.zip +git add antlr-csharp-runtime-4.6.zip git commit -a -m 'update C# runtime' git push origin gh-pages popd @@ -348,9 +348,9 @@ cd ~/antlr/sites/website-antlr4/api git checkout gh-pages git pull origin gh-pages cd Java -jar xvf ~/.m2/repository/org/antlr/antlr4-runtime/4.5.2/antlr4-runtime-4.5.2-javadoc.jar +jar xvf ~/.m2/repository/org/antlr/antlr4-runtime/4.6/antlr4-runtime-4.6-javadoc.jar cd ../JavaTool -jar xvf ~/.m2/repository/org/antlr/antlr4/4.5.2/antlr4-4.5.2-javadoc.jar +jar xvf ~/.m2/repository/org/antlr/antlr4/4.6/antlr4-4.6-javadoc.jar git commit -a -m 'freshen api doc' git push origin gh-pages ```