Skip to content

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.

@rhansen rhansen force-pushed the version branch 4 times, most recently from e0d2217 to b4fd011 Compare March 13, 2024 23:08
@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
rhansen added 3 commits May 12, 2024 16:43
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
@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.

2 participants