File tree Expand file tree Collapse file tree 2 files changed +17
-12
lines changed Expand file tree Collapse file tree 2 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,7 @@ This is an export of [`rustdoc-json-types`](https://github.com/rust-lang/rust/bl
9
9
1 . Run ` ./update.sh ` to pull code from upstream
10
10
2 . Run ` cargo test `
11
11
3 . Run ` ./clgen.sh <old_version> <new_version> `
12
- 4 . Edit the ` TODO ` section in ` CHANGELOG.md ` to include what was done in this release.
13
- 5 . ` git add . `
14
- 6 . ` git commit -m v<new_version> `
15
- 7 . ` cargo publish `
16
- 8 . ` git tag v<new_version> `
17
- 9 . ` git push `
18
- 10 . ` git push --tags `
19
-
20
-
12
+ 4 . Follow instructions to commit and push.
21
13
22
14
## License
23
15
Original file line number Diff line number Diff line change @@ -38,18 +38,31 @@ format_version=$(cat src/lib.rs | grepor FORMAT_VERSION | col6 | sd ";" "")
38
38
rustc_commit=$( cat COMMIT.txt)
39
39
40
40
# We do a shuffling dance to append the new version to the top of the changelog
41
+ new_tag=" v$new_version "
42
+ old_tag=" v$old_version "
43
+
41
44
cat<< EOF > tmp
42
- <a name="$new_version "></a>"
43
- # [$new_version ](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/$new_version ) - $date "
45
+ <a name="$new_tag "></a>"
46
+ # [$new_tag ](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/$new_tag ) - $date "
44
47
45
48
TODO: Changelog.
46
49
47
50
- Format Version: $format_version
48
51
- Upstream Commit: [\` $rustc_commit \` ](https://github.com/rust-lang/rust/commit/$rustc_commit )"
49
- - Diff: [$new_version ...$new_version ](https://github.com/aDotInTheVoid/rustdoc-types/compare/$old_version ...$new_version )"
52
+ - Diff: [$old_tag ...$new_tag ](https://github.com/aDotInTheVoid/rustdoc-types/compare/$old_tag ...$new_tag )"
53
+
50
54
EOF
51
55
52
56
cat tmp CHANGELOG.md > tmp2
53
57
mv tmp2 CHANGELOG.md
54
58
rm tmp
55
59
60
+
61
+ echo " First, edit the TODO in CHANGELOG.md"
62
+ echo " Then, check the diff"
63
+ echo " Finaly Run:"
64
+ echo " git add Cargo.toml CHANGELOG.md COMMIT.txt src/"
65
+ echo " git commit -m $new_version "
66
+ echo " git tag $new_tag "
67
+ echo " git push && git push --tags"
68
+ echo " cargo publish"
You can’t perform that action at this time.
0 commit comments