Use dch instead of hack to generate changelog#1767
Conversation
| cd .. | ||
|
|
||
| # get the jamulus version from pro file | ||
| VERSION=$(cat Jamulus.pro | grep -oP 'VERSION = \K\w[^\s\\]*') |
There was a problem hiding this comment.
We should have an autobuild script to do this in a consistent manner...
|
Is there an example of what |
|
dch produces a debian changelog file: Note: I added the backslashes manually. |
|
I don't know offhand what the current state looks like, but the new one does not look like what I had expected either (properly indented lists)? |
|
Yeah. But it's better than a syntactically wrong changelog file. |
|
We could loop through each change log entry but this would mean some rewriting of this file: https://github.com/jamulussoftware/jamulus/blob/master/.github/actions_scripts/getChangelog.pl Probably it can be done with some regex magic which I'm not quite into. |
hoffie
left a comment
There was a problem hiding this comment.
I'm approving on the basis that it improves things, not on the basis that I'm happy with the result. ;)
Maybe defer merging for some days. I can try to have a look at the supposed regexp magic. :)
|
@pljones do we want this to be merged for the next release or not? I don't know if I can do it with a regex... |
|
I'd like to see any proposed final result -- any automated process will only be as good as the human input to that process... |
Is it though? I'm not sure how a non-readable changelog file can be better. Anyway, I tried the loop over each change method, and it seems to work okay. But I'm not sure what the deal with the "Initial Release" entry is. Code is here: master...npostavs:np.dch-changelog, the output looks like this: changelog.dch.log |
Probably the changelog would in theory include all changelogs of previous versions. I assume @mirabilos our debian packager knows more about how to have this file syntactically correct. @npostavs feel free to open a PR |
|
I opened #2138. |
|
Ok. Closing this then! Thanks |
See: https://github.com/nefarius2001/jamulus/blob/autobuild/stable2/distributions/build-debian-package-auto.sh
Probably a lot more could be improved here.