#!/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
# Generated sources
generate: $(INCLDIR)\idzebra\version.h
-$(INCLDIR)\idzebra\version.h:
+$(INCLDIR)\idzebra\version.h: $(ROOTDIR)/IDMETA
@cd $(ROOTDIR)\util
- $(TCL) mk_version.tcl $(ROOTDIR)/configure.ac $(INCLDIR)\idzebra\version.h
+ $(TCL) mk_version.tcl $(ROOTDIR)/IDMETA $(INCLDIR)\idzebra\version.h
# Source and object modules
# Note: Ordinary source files are not specified here at