On Sunday 07 August 2011 12:59:16 Bertrand Jacquin wrote: > @@ -161,6 +168,11 @@ dist_noinst_DATA += openvpn.8 > nodist_html_DATA = openvpn.8.html > openvpn.8.html: $(srcdir)/openvpn.8 > $(MAN2HTML) < $(srcdir)/openvpn.8 > openvpn.8.html > + > +comma = , > + > +%.o: %.rc > + $(WINDRES) -D _VERSION_=$(subst .,$(comma),$(VERSION)),0 -i $< -o $@ > else > dist_man_MANS = openvpn.8 > endif
This will at least break compilation on master where #define VERSION "2.x-master" _VERSION_ needs needs to be stricly numerical. Maybe we could define a WINDOWS_VERSION a,b,c,0 in version.m4 for this. Or even have separate major, minor and patch version definitions in there that could be used to build the versions in the .rc file itself. Heiko -- Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen