The TOOLSVERSION was inconsistent in configure.ac and Makefile: * Rename the second parameter to AC_INIT() into short_version * Calculate TOOLSVERSION during configure and use it to generate version.c from version.c.in * For now, leave duplicate TOOLSVERSION in Makefile (for make dist) Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>remotes/origin/review-automake
parent
fbb6c1a17e
commit
41532ca8a1
@ -1,10 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
cat << END
|
|
||||||
/*
|
|
||||||
* version.c
|
|
||||||
* Automatically generated
|
|
||||||
*/
|
|
||||||
|
|
||||||
const char dahdi_tools_version[] = "DAHDI Tools Version - ${TOOLSVERSION}";
|
|
||||||
|
|
||||||
END
|
|
@ -0,0 +1,6 @@
|
|||||||
|
/*
|
||||||
|
* version.c.in
|
||||||
|
*/
|
||||||
|
|
||||||
|
const char dahdi_tools_version[] = "DAHDI Tools Version - @TOOLSVERSION@";
|
||||||
|
|
Loading…
Reference in new issue