From a108609c3d6175a4e84cc03eba14218686e40982 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Mon, 13 May 2019 15:58:45 -0700 Subject: [PATCH] Added function in dist.sh to generate markdown-formatted changelogs --- CHANGELOG.md | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++ dist.sh | 19 +++++++++ 2 files changed, 137 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..2120c5d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,118 @@ +## [1.3.1-hb0] - 2019-05-13 +*** +- Minor tweaks for Homebrew-core compliance +## [1.3.1] - 2019-05-12 +*** +- Minor build-related improvements. No API or core functionality changes +## [1.3.0] - 2019-04-22 +*** +- Added new callback API. Significant improvements to performance and reliability +## [1.2.0] - 2019-03-01 +*** +- ZeroTier core version upgrade to 1.2.12, major bugfixes, improved platform compatibility, revamped build process +## [1.1.6] - 2018-02-08 +*** +- Improved concurrent thread performance +## [1.1.4] - 2017-06-06 +*** +- Important Dual-stack IPv4/IPv6 bug fix +## [1.1.3] - 2017-06-06 +*** +- Updated picoTCP to 1.4.0, improved selftest +## [1.1.2] - 2017-06-06 +*** +- Minor ZTO source update, improved selftest, documentation +## [1.1.1] - 2017-06-06 +*** +- Updated ZTO source to 1.2.4, bug fixes +## [1.1.0] - 2017-06-06 +*** +- Added new socket multiplexing logic, significant restructuring of picoTCP stack driver +## [1.0.0] - 2017-06-06 +*** +- Refactored library structure. Dynamic loading of stack no longer required. lwIP Support dropped +## [0.9.0] - 2017-06-06 +*** +- Updated ZTO source for tptr feature +## [0.8.0] - 2017-06-06 +*** +- Updated ZTO source to 1.2.0, bug fixes +## [0.7.0] - 2017-06-06 +*** +- Updated ZTO source to 1.1.17, updated documentation, bug fixes +## [0.6.2] - 2017-06-06 +*** +- Updated ZTO source for reliability +## [0.6.1] - 2017-06-06 +*** +- Stack driver support for IPv4 XOR IPv6 +## [0.6.0] - 2017-06-06 +*** +- Updated ZTO source to 1.1.14 +## [0.5.0] - 2017-06-06 +*** +- Implemented driver for picoTCP network stack +## [0.4.2] - 2017-06-06 +*** +- IPv6-related fixes +## [0.4.1] - 2017-06-06 +*** +- Added IPv6 support to lwIP stack driver +## [0.4.0] - 2017-06-06 +*** +- Upgraded to lwIP 2.0.0 +## [0.3.5] - 2017-06-06 +*** +- Introduced prettier and less complex Swift API +## [0.3.4] - 2017-06-06 +*** +- Improved debugging traces +## [0.3.3] - 2017-06-06 +*** +- Improved API parameter naming consistency +## [0.3.2] - 2017-06-06 +*** +- Improved proxy server controls +## [0.3.1] - 2017-06-06 +*** +- API consistency improvements +## [0.3.0] - 2017-06-06 +*** +- Updated ZTO source to 1.1.4 +## [0.2.1] - 2017-06-06 +*** +- Normalized zt_ API naming conventions +## [0.2.0] - 2017-06-06 +*** +- Old netcon project moved into its own repo + + +[1.3.1-hb0]: https://github.com/zerotier/libzt/compare/1.3.1..1.3.1-hb0 +[1.3.1]: https://github.com/zerotier/libzt/compare/1.3.0..1.3.1 +[1.3.0]: https://github.com/zerotier/libzt/compare/1.2.0..1.3.0 +[1.2.0]: https://github.com/zerotier/libzt/compare/1.1.6..1.2.0 +[1.1.6]: https://github.com/zerotier/libzt/compare/1.1.4..1.1.6 +[1.1.4]: https://github.com/zerotier/libzt/compare/1.1.3..1.1.4 +[1.1.3]: https://github.com/zerotier/libzt/compare/1.1.2..1.1.3 +[1.1.2]: https://github.com/zerotier/libzt/compare/1.1.1..1.1.2 +[1.1.1]: https://github.com/zerotier/libzt/compare/1.1.0..1.1.1 +[1.1.0]: https://github.com/zerotier/libzt/compare/1.0.0..1.1.0 +[1.0.0]: https://github.com/zerotier/libzt/compare/0.9.0..1.0.0 +[0.9.0]: https://github.com/zerotier/libzt/compare/0.8.0..0.9.0 +[0.8.0]: https://github.com/zerotier/libzt/compare/0.7.0..0.8.0 +[0.7.0]: https://github.com/zerotier/libzt/compare/0.6.2..0.7.0 +[0.6.2]: https://github.com/zerotier/libzt/compare/0.6.1..0.6.2 +[0.6.1]: https://github.com/zerotier/libzt/compare/0.6.0..0.6.1 +[0.6.0]: https://github.com/zerotier/libzt/compare/0.5.0..0.6.0 +[0.5.0]: https://github.com/zerotier/libzt/compare/0.4.2..0.5.0 +[0.4.2]: https://github.com/zerotier/libzt/compare/0.4.1..0.4.2 +[0.4.1]: https://github.com/zerotier/libzt/compare/0.4.0..0.4.1 +[0.4.0]: https://github.com/zerotier/libzt/compare/0.3.5..0.4.0 +[0.3.5]: https://github.com/zerotier/libzt/compare/0.3.4..0.3.5 +[0.3.4]: https://github.com/zerotier/libzt/compare/0.3.3..0.3.4 +[0.3.3]: https://github.com/zerotier/libzt/compare/0.3.2..0.3.3 +[0.3.2]: https://github.com/zerotier/libzt/compare/0.3.1..0.3.2 +[0.3.1]: https://github.com/zerotier/libzt/compare/0.3.0..0.3.1 +[0.3.0]: https://github.com/zerotier/libzt/compare/0.2.1..0.3.0 +[0.2.1]: https://github.com/zerotier/libzt/compare/0.2.0..0.2.1 +[0.2.0]: https://github.com/zerotier/libzt/compare/e073a35b72781a8947e197419677e82b9ed9f9bc..0.2.0 diff --git a/dist.sh b/dist.sh index 0bb7ba0..f850519 100755 --- a/dist.sh +++ b/dist.sh @@ -598,6 +598,25 @@ bdist() package_everything "release" } +# Generate a markdown CHANGELOG from git-log +update_changelog() +{ + first_commit=$(git rev-list --max-parents=0 HEAD) + git for-each-ref --sort=-refname --format="## [%(refname:short)] - %(taggerdate:short) &(newline)*** &(newline)- %(subject) %(body)" refs/tags > CHANGELOG.md + gsed -i '''s/\&(newline)/\n/' CHANGELOG.md # replace first instance + gsed -i '''s/\&(newline)/\n/' CHANGELOG.md # replace second instance + echo -e "\n" >> CHANGELOG.md + for curr_tag in $(git tag -l --sort=-v:refname) + do + prev_tag=$(git describe --abbrev=0 ${curr_tag}^) + if [ -z "${prev_tag}" ] + then + prev_tag=${first_commit} + fi + echo "[${curr_tag}]: https://github.com/zerotier/libzt/compare/${prev_tag}..${curr_tag}" >> CHANGELOG.md + done +} + # List all functions in this script (just for convenience) list() {