← Back to team overview

vm team mailing list archive

[Bug 513024] Re: version.txt missing from lp:vm/8.1.x

 

>>>>> On Sun, 31 Jan 2010, Uday S Reddy wrote:

> Hi Ulrich, I have just done a clean build of 8.1.1-devo with a
> version.txt file in place that said "VM 8.1.0-beta".  The file
> remained as it is, and didn't get regenerated.

> It seems to me that the right time to generate the version.txt file
> is when ./configure is done. Is it possible to set things up so that
> it gets generated at that time?

Hi Uday,

sorry that the version handling causes so much trouble.
One should think that it's trivial, but looks like it isn't.

Does the patch included below help? The Makefiles assign
PACKAGE_VERSION, so when they are regenerated, then the
version.{txt,texi} should also be updated (and I hope there isn't
another flaw in this logic).

Cheers
Ulrich


--- info/Makefile.in	2009-12-05 18:25:17 +0000
+++ info/Makefile.in	2010-01-31 17:17:57 +0000
@@ -36,7 +36,7 @@
 
 all: info
 
-version.texi:
+version.texi: Makefile
 	echo @set VERSION $(PACKAGE_VERSION) > $@
 
 vm.info:: version.texi
--- lisp/Makefile.in	2009-12-31 14:42:01 +0000
+++ lisp/Makefile.in	2010-01-31 17:18:18 +0000
@@ -121,7 +121,7 @@
 ##############################################################################
 vm-version.elc: vm-version.el version.txt
 
-version.txt:
+version.txt: Makefile
 	echo "\"$(PACKAGE_VERSION)\"" > $@
 
 ##############################################################################



Follow ups

References