#!/usr/bin/tclsh
proc usage {} {
- puts {mk_version.tcl [-v] configure.ac infile ..}
+ puts {mk_version.tcl [-v] IDMETA infile ..}
exit 1
}
if {$cnt < 0} {
break
}
- regexp {AC_INIT\([^,]+,\[([0-9.]+)\]} $line s version
+ regexp {VERSION=([0-9.]+)} $line s version
}
close $f
set c [split $version .]
set versionl [expr ([lindex $c 0] * 256 + [lindex $c 1]) * 256 + [lindex $c 2]]
-set maps(YAZ_VERSION_HEX) [format %x $versionl]
+set maps(VERSION_HEX) [format %x $versionl]
if {[llength $c] == 3} {
lappend c 1