| 1 | #!/bin/bash |
| 2 | |
| 3 | cp CHANGELOG.md changelog |
| 4 | sed -i '1,2d' changelog #Remove header and empty line ad the beginning |
| 5 | sed -i 's/\[\(.*[^]]*\)\].*/\1)/g' changelog # Replace links to issues with only number |
| 6 | sed -i "s/^[[:blank:]]*$/\n -- Damir Porobic <[email protected]> ${BUILD_TIME}\n/" changelog # After every release add time and author |
| 7 | sed -i 's/## Release \([0-9]*\.[0-9]*\.[0-9]*\)/ksnip (\1) stable; urgency=medium\n/' changelog # Rename release headers |
| 8 | sed -i 's/^\(\* .*\)/ \1/' changelog # Add two spaces before every entry |
| 9 | printf "\n -- Damir Porobic <[email protected]> ${BUILD_TIME}\n" >> changelog # Add time and author for the first release |
| 10 | cp changelog ksnip-${VERSION_NUMBER}/debian/ |
| 11 | |
| 12 | echo "Changelog:" |
| 13 | echo "---------------" |
| 14 | cat changelog |
| 15 | echo "---------------" |