From f64c8bd3c5ad5b3e12c2f767008944df7a79eea0 Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Fri, 28 Jan 2011 11:41:23 -0500 Subject: Use name and version as defined in configure.ac instead of hardcoding it in Boot.java Use PACKAGE_NAME and FULL_VERSION as defined during build time rather than hardcoding them in net.sourceforge.jnlp.runtime.Boot. Generate a manifest file at build time, and define Implementation-Title and Implementation-Version to PACKAGE_NAME and FULL_VERSION. Use these values from the manifest file when displaying project name and version, rather than hardcoding "netx" and 0.5. 2011-01-28 Omair Majid * Makefile.am: Move ICEDTEA_REV, ICEDTEA_PKG to acinclude.m4. Use FULL_VERSION. (stamps/netx-dist.stamp): Depend on netx.manifest. Use this file as the jar file manifest. * acinclude.m4 (IT_SET_VERSION): New macro. Defines FULL_VERSION. * configure.ac: Add netx.manifest to AC_CONFIG_FILES. Invoke IT_SET_VERSION. * netx.manifest.in: New file. * netx/net/sourceforge/jnlp/runtime/Boot.java: Set name and version using information from the manifest file. --- acinclude.m4 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index 2e488f9..9d06708 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -667,3 +667,19 @@ elif test x"${it_cv_applet_hole}" = "x3"; then fi AC_PROVIDE([$0])dnl ]) + +AC_DEFUN_ONCE([IT_SET_VERSION], +[ + AC_REQUIRE([IT_OBTAIN_HG_REVISIONS]) + AC_REQUIRE([IT_GET_PKGVERSION]) + AC_MSG_CHECKING([what version string to use]) + if test "x${ICEDTEA_REVISION}" != xnone; then + ICEDTEA_REV="+${ICEDTEA_REVISION}" + fi + if test "x${PKGVERSION}" != "xnone"; then + ICEDTEA_PKG=" (${PKGVERSION})" + fi + FULL_VERSION="${PACKAGE_VERSION}${ICEDTEA_REV}${ICEDTEA_PKG}" + AC_MSG_RESULT([${FULL_VERSION}]) + AC_SUBST([FULL_VERSION]) +]) -- cgit v1.2.3