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