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

User-friendly pre-release version strings #639

Merged
merged 3 commits into from May 12, 2024
Merged

Conversation

rhansen
Copy link
Member

@rhansen rhansen commented Mar 7, 2024

(multiple commits; please do not squash)

Perl version strings are flawed in a few ways. Convert them to user-friendly strings when printed so that Git tags and tarball names are easier for downstream distributions to work with.

Also tell Autoconf to read the version from ddclient.in to avoid the need to maintain the same version string in two different places.

@LenardHess
Copy link
Contributor

Quick FYI: I haven't had the time to look at this (or the general build steps for that matter) so far.

@rhansen rhansen force-pushed the version branch 5 times, most recently from 1ac62aa to 5f5c29b Compare May 12, 2024 07:40
Passing `--version=short` simply prints the version and exits.  This
will make it possible for a future commit to change `configure.ac` to
extract the version string from `ddclient.in` to avoid maintaining the
same version string in two places.
This avoids the need to maintain the same version string in two
different places.
Perl version strings are flawed in a few ways.  Convert them to
user-friendly strings when printed so that Git tags and tarball names
are easier for downstream distributions to work with.
@rhansen
Copy link
Member Author

rhansen commented May 12, 2024

I'm going to go ahead and merge this, though I would appreciate it if someone other than me would look over it to confirm that the approach I took is reasonable. I can easily revert the merge commit and re-do this PR if anyone has any suggestions for improvement.

@rhansen rhansen merged commit 07c4e4a into ddclient:master May 12, 2024
7 checks passed
@rhansen rhansen deleted the version branch May 12, 2024 20:51
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.

None yet

2 participants