[chirp_devel] version 0.3.0dev
I use Funtoo to install what they call Chirp version 999999. This gets the latest code from Mercurial. When I do "Help", "About" it shows CHIRP 0.3.0dev. This isn't very helpful info because I don't know if I'm running "the latest from Mercurial" as of today, or as of 3 months ago. Is there any way to include a date/time stamp in this version info?
-Rob
I use Funtoo to install what they call Chirp version 999999. This gets the latest code from Mercurial. When I do "Help", "About" it shows CHIRP 0.3.0dev. This isn't very helpful info because I don't know if I'm running "the latest from Mercurial" as of today, or as of 3 months ago. Is there any way to include a date/time stamp in this version info?
It would be something they would have to do during the package build process, like I do for the daily builds. It's called out specifically for this reason so it's easy to script a modification at build time.
--Dan
Could you point me at the script you use to do the daily builds?
On Mon, Jan 29, 2018 at 3:59 PM, Dan Smith via chirp_devel < chirp_devel@intrepid.danplanet.com> wrote:
I use Funtoo to install what they call Chirp version 999999. This gets
the latest code from Mercurial. When I do "Help", "About" it shows CHIRP 0.3.0dev. This isn't very helpful info because I don't know if I'm running "the latest from Mercurial" as of today, or as of 3 months ago. Is there any way to include a date/time stamp in this version info?
It would be something they would have to do during the package build process, like I do for the daily builds. It's called out specifically for this reason so it's easy to script a modification at build time.
--Dan _______________________________________________ chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers
Could you point me at the script you use to do the daily builds?
It's embedded in Jenkins build steps, so not easily linkable. However, the gist is:
export BUILD=daily-$(date +%Y%m%d) sed -i 's/^CHIRP_VERSION.*$/CHIRP_VERSION="'${BUILD}'"/' chirp/__init__.py
Something like that should be doable in any reasonable package system script.
--Dan
participants (2)
-
Dan Smith
-
Rob Owens