win,msi: broadcast WM_SETTINGCHANGE after install
[platform/upstream/nodejs.git] / tools / build-changelog.sh
1 #!/bin/bash
2 cat CHANGELOG.md \
3   | sed -E 's|([^/ ]+/[^#]+)#([0-9]+)|[\1#\2](https://github.com/\1/issues/\2)|g' \
4   | sed -E 's| #([0-9]+)| [#\1](https://github.com/joyent/node/issues/\1)|g' \
5   | sed -E 's|([0-9]+\.[0-9]+\.[0-9]+),? Version ([0-9]+\.[0-9]+\.[0-9]+)|<a id="v\2"></a>\
6 # \1 Version \2|g' \
7   | sed -E 's|(,? ?)([0-9a-g]{6})[0-9a-g]{34}|\1[\2](https://github.com/joyent/node/commit/\2)|g' \
8   | ./node tools/doc/node_modules/.bin/marked > out/doc/changelog-body.html
9
10 cat doc/changelog-head.html \
11     out/doc/changelog-body.html \
12     doc/changelog-foot.html \
13   | sed -E 's|__VERSION__|v'$(python tools/getnodeversion.py)'|g' \
14   > out/doc/changelog.html
15
16 rm out/doc/changelog-body.html