Generate the file module.ver used by instantbird.exe from the value of instantbird/config/version.txt. There is now a single place in the tree containing the instantbird version number.
authorFlorian Quèze <florian@instantbird.org>
Thu, 12 Mar 2009 13:13:26 +0100
changeset 17562 94665eecc7d6f020210c871836a8d0a63ed65dbf
parent 17561 9dc3a88e74ecb84783f9db771527dd200715c3de
child 17563 6333f302c00c0b33010c70753bfeb1f4c900b2fc
push idunknown
push userunknown
push dateunknown
Generate the file module.ver used by instantbird.exe from the value of instantbird/config/version.txt. There is now a single place in the tree containing the instantbird version number.
im/app/Makefile.in
im/app/module.ver
im/app/module.ver.in
--- a/im/app/Makefile.in
+++ b/im/app/Makefile.in
@@ -365,10 +365,13 @@ ifeq ($(OS_ARCH),WINNT)
 	$(EXIT_ON_ERROR) \
 	for file in $^; do \
 	$(PERL) -pe 's/(?<!\r)\n/\r\n/g;' < $$file > $(FINAL_TARGET)/`basename $$file`; \
 	done
 else
 	$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)
 endif
 
+module.ver: module.ver.in $(DEPTH)/config/autoconf.mk
+	sed 's/@''MODULE_PRODUCTVERSION@/'`echo $(INSTANTBIRD_VERSION) | sed 's/[a-z].*//; s/\./,/g; s/^\([0-9]*,[0-9]*\)$$/\1,0/; s/^\([0-9]*,[0-9]*,[0-9]*\)$$/\1,0/'`'/;s/@''MODULE_PRODUCTVERSION_STRING@/$(INSTANTBIRD_VERSION)/' $< > $@
+
 libs:: $(srcdir)/profile/prefs.js
 	$(INSTALL) $^ $(DIST)/bin/defaults/profile
rename from im/app/module.ver
rename to im/app/module.ver.in
--- a/im/app/module.ver
+++ b/im/app/module.ver.in
@@ -1,9 +1,9 @@
 WIN32_MODULE_DESCRIPTION=Instantbird
 WIN32_MODULE_PRODUCTNAME=Instantbird
 WIN32_MODULE_NAME=Instantbird
-WIN32_MODULE_PRODUCTVERSION=0,2,0,0
-WIN32_MODULE_PRODUCTVERSION_STRING=0.2a1pre
+WIN32_MODULE_PRODUCTVERSION=@MODULE_PRODUCTVERSION@
+WIN32_MODULE_PRODUCTVERSION_STRING=@MODULE_PRODUCTVERSION_STRING@
 WIN32_MODULE_COPYRIGHT=©Instantbird, Mozilla and libpurple Developers, according to the GPL 2.0 license, as applicable.
 WIN32_MODULE_COMPANYNAME=Instantbird
 WIN32_MODULE_TRADEMARKS=Instantbird
 WIN32_MODULE_COMMENT=Instantbird Instant Messaging Client