From: foobar Date: Wed, 12 Feb 2003 04:38:30 +0000 (+0000) Subject: "Generate" the man page so that it gets correct version always. X-Git-Tag: RELEASE_0_5~1085 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7788cefdd3bcf534a435d320801b3a80962cb750;p=php "Generate" the man page so that it gets correct version always. --- diff --git a/sapi/cli/Makefile.frag b/sapi/cli/Makefile.frag index 4c97ebe914..df6c86f2f2 100644 --- a/sapi/cli/Makefile.frag +++ b/sapi/cli/Makefile.frag @@ -6,4 +6,4 @@ install-cli: $(SAPI_CLI_PATH) @$(INSTALL_CLI) @echo "Installing PHP CLI man page: $(INSTALL_ROOT)$(mandir)/man1/" @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 - @$(INSTALL_DATA) $(srcdir)/php.1 $(INSTALL_ROOT)$(mandir)/man1/php.1 + @$(INSTALL_DATA) $(builddir)/php.1 $(INSTALL_ROOT)$(mandir)/man1/php.1 diff --git a/sapi/cli/config.m4 b/sapi/cli/config.m4 index 439a636556..7651e702b3 100644 --- a/sapi/cli/config.m4 +++ b/sapi/cli/config.m4 @@ -31,8 +31,10 @@ if test "$PHP_SAPI_CLI" != "no"; then ;; esac INSTALL_CLI="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(bindir); \$(INSTALL) -m 0755 \$(SAPI_CLI_PATH) \$(INSTALL_ROOT)\$(bindir)/php" + PHP_SUBST(BUILD_CLI) PHP_SUBST(INSTALL_CLI) + PHP_OUTPUT(sapi/cli/php.1) fi AC_MSG_RESULT($PHP_SAPI_CLI) diff --git a/sapi/cli/php.1 b/sapi/cli/php.1.in similarity index 99% rename from sapi/cli/php.1 rename to sapi/cli/php.1.in index 6235c394b1..75fc6f5fe2 100644 --- a/sapi/cli/php.1 +++ b/sapi/cli/php.1.in @@ -281,7 +281,7 @@ A List of active developers can be found here: And last but not least PHP was developed with the help of a huge amount of contributors all around the world. .SH VERSION INFORMATION -This manpage describes \fBphp\fP, version 5.0.0. +This manpage describes \fBphp\fP, version @PHP_VERSION@. .SH COPYRIGHT Copyright \(co 1997\-2003 The PHP Group .LP