diff options
author | foobar <sniper@php.net> | 2003-02-12 04:38:30 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-02-12 04:38:30 +0000 |
commit | 7788cefdd3bcf534a435d320801b3a80962cb750 (patch) | |
tree | 31bfc20ebfe84c14b0ba6f2266ce933d05c1bb8a | |
parent | cd7260537a211f04135903393b6a3f82764dc5fb (diff) | |
download | php-git-7788cefdd3bcf534a435d320801b3a80962cb750.tar.gz |
"Generate" the man page so that it gets correct version always.
-rw-r--r-- | sapi/cli/Makefile.frag | 2 | ||||
-rw-r--r-- | sapi/cli/config.m4 | 2 | ||||
-rw-r--r-- | sapi/cli/php.1.in (renamed from sapi/cli/php.1) | 2 |
3 files changed, 4 insertions, 2 deletions
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 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 |