From 76b1f806645fce998c427ce701f936c05c6b496f Mon Sep 17 00:00:00 2001
From: KAWASHIMA Takahiro <t-kawashima@jp.fujitsu.com>
Date: Wed, 31 May 2017 14:17:44 +0900
Subject: [PATCH] java: Use correct date/version in `mpijava` man page

`mpijavac.1` should be generated at `make`-time...

Signed-off-by: KAWASHIMA Takahiro <t-kawashima@jp.fujitsu.com>
---
 .gitignore                                       |  1 +
 ompi/tools/wrappers/Makefile.am                  | 10 ++++++----
 ompi/tools/wrappers/{mpijavac.1 => mpijavac.1in} |  3 ++-
 3 files changed, 9 insertions(+), 5 deletions(-)
 rename ompi/tools/wrappers/{mpijavac.1 => mpijavac.1in} (97%)

diff --git a/.gitignore b/.gitignore
index ab46c96dd0..222e2be1f8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -256,6 +256,7 @@ ompi/tools/wrappers/mpicc.1
 ompi/tools/wrappers/mpic++.1
 ompi/tools/wrappers/mpicxx.1
 ompi/tools/wrappers/mpifort.1
+ompi/tools/wrappers/mpijavac.1
 ompi/tools/wrappers/ompi_wrapper_script
 ompi/tools/wrappers/ompi.pc
 ompi/tools/wrappers/ompi-c.pc
diff --git a/ompi/tools/wrappers/Makefile.am b/ompi/tools/wrappers/Makefile.am
index 9f97378504..933eb3d762 100644
--- a/ompi/tools/wrappers/Makefile.am
+++ b/ompi/tools/wrappers/Makefile.am
@@ -14,6 +14,7 @@
 # Copyright (c) 2013      Intel, Inc. All rights reserved.
 # Copyright (c) 2014      Research Organization for Information Science
 #                         and Technology (RIST). All rights reserved.
+# Copyright (c) 2017      FUJITSU LIMITED.  All rights reserved.
 # $COPYRIGHT$
 #
 # Additional copyrights may follow
@@ -24,14 +25,15 @@
 include $(top_srcdir)/Makefile.ompi-rules
 
 generated_man_pages = mpicc.1 mpic++.1 mpicxx.1 mpifort.1 mpif77.1 mpif90.1
-man_pages = $(generated_man_pages)
-
-EXTRA_DIST = mpif77.1in mpijavac.1 mpijavac.pl.in
 
 if OMPI_WANT_JAVA_BINDINGS
-man_pages += mpijavac.1
+generated_man_pages += mpijavac.1
 endif
 
+man_pages = $(generated_man_pages)
+
+EXTRA_DIST = mpif77.1in mpijavac.1in mpijavac.pl.in
+
 if OPAL_WANT_SCRIPT_WRAPPER_COMPILERS
 
 bin_SCRIPTS = ompi_wrapper_script
diff --git a/ompi/tools/wrappers/mpijavac.1 b/ompi/tools/wrappers/mpijavac.1in
similarity index 97%
rename from ompi/tools/wrappers/mpijavac.1
rename to ompi/tools/wrappers/mpijavac.1in
index 15ffe26ef1..e95016e6aa 100644
--- a/ompi/tools/wrappers/mpijavac.1
+++ b/ompi/tools/wrappers/mpijavac.1in
@@ -1,5 +1,6 @@
 .\" Copyright (c) 2012      Los Alamos National Security, LLC.  All rights reserved.
-.TH mpijava 1 "Unreleased developer copy" "1.7a1r25839M" "Open MPI"
+.\" Copyright (c) 2017      FUJITSU LIMITED.  All rights reserved.
+.TH mpijava 1 "#OPAL_DATE#" "#PACKAGE_VERSION#" "#PACKAGE_NAME#"
 .
 .SH NAME
 mpijava -- Open MPI Java wrapper compiler