Skip to content
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

Update the version in the control file on a new release #171

Merged

Conversation

walkero-gr
Copy link
Contributor

When a new release is initiated, the misc/control files needs to be updated as part of the process. This is used when the Ubuntu APT package is created.

@afxgroup afxgroup merged commit 63f6298 into AmigaLabs:master Mar 21, 2024
1 check passed
@@ -240,6 +240,7 @@ ifdef GITTAG
$(VERBOSE)sed -i 's/REVISION\t*[[:digit:]]/REVISION\t\t$(MINOR)/g' library/c.lib_rev.h
$(VERBOSE)sed -i 's/SUBREVISION\t*[[:digit:]]/SUBREVISION\t\t$(PATCH)/g' library/c.lib_rev.h
$(VERBOSE)sed -i 's/clib4.library [0-9]*\.[0-9]*\.[0-9]*/clib4.library $(MAJOR).$(MINOR).$(PATCH)/g' library/c.lib_rev.h
$(VERBOSE)sed -i 's/Version: [0-9]*\.[0-9]*\.[0-9]*/Version: $(MAJOR).$(MINOR).$(PATCH)/g' misc/control
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick alert:
I would update the regexp to s/Version: [0-9]+\.[0-9]+\.[0-9]+/Version: $(MAJOR).$(MINOR).$(PATCH)/g
The change is that the regexp now requires at least on digit for MAJOR, MINOR and PATCH.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking to use [[:digit:]], and that should work fine, unless if someone goes and update manually that file to something like 1.10.0. That would make this update fail. That's what I wanted to avoid.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using [[:digit:]]\+ should do want you want. It will also match 1+ digits.

@afxgroup
Copy link
Collaborator

However this makes sense if we use the third digit but I don't know if it is needed on clib4 since OS4 doesn't supports it. We have onlt VERSION and REVISION except if we use it as description when using FULL parameter in version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants