Tcl Library Source Code

View Ticket
Login
Ticket UUID: 13fc0520a654f9e97567b4ede6d89e52fc473488
Title: Access tcllib release version from script level
Type: RFE Version: main
Submitter: oehhar Created on: 2022-09-16 11:01:40
Subsystem: tool Assigned To: aku
Priority: 7 High Severity: Minor
Status: Closed Last Modified: 2024-09-19 16:19:30
Resolution: Fixed Closed By: aku
    Closed on: 2024-09-19 16:19:30
Description:
Thanks for great TCLLIB !

I have the legal requirement to display the release version of TCLLIB in an about box. Is there any way to get the tcllib release version.

When looking to TCLLIB 1.12, the string "1.12" is only present in a comment of the auto-generated master pckIndex.tcl file.

Would it possible to add a line:

<verbatim>
package ifneeded tcllib 1.12 [list package provide tcllib 1.12]
</verbatim>

to this file, so a "package require tcllib" would return the release version number?

Thank you and take care,
Harald
User Comments: aku added on 2024-09-19 16:19:30:
Done with commit [ee4fb115b2].
Plus tweaks to use Tcl 8.5 features in the package index file (apply, ni)

oehhar added on 2024-06-27 17:35:45:

Or maybe, the buildinfo framework may be used to include the checkout id.

See here from ooxml: https://fossil.sowaswie.de/ooxml/info/424958a4c5506180

Thanks for all, Harald