-
Notifications
You must be signed in to change notification settings - Fork 238
Use dch instead of hack to generate changelog #1767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.