Bump API version for the Scintilla 5.1.5 change
[geany-mirror.git] / scripts / github-news
blob42129333606bfb1858170ca2fd3a0e414ca5d83c
1 #!/bin/sh
3 # Converts the last NEWS entry to GitHub format
5 sed -n -e '
7 :next
9 # stop at the second header
10 /^[A-Za-z0-9_-]/q
11 # strip the leading indentation
12 s/^ //
13 # Make titles
14 s/^[A-Za-z0-9_-]/## \0/
15 # Turn PR and Issue references to links
16 s%PR#\([0-9]\{1,\}\)%[\0](https://github.com/geany/geany/pull/\1)%g
17 s%Issue#\([0-9]\{1,\}\)%[\0](https://github.com/geany/geany/issues/\1)%g
21 b next
22 ' < NEWS