]> granicus.if.org Git - php/commitdiff
MFH: - Added man pages for "phpize" and "php-config" scripts. (Jakub Vrana)
authorfoobar <sniper@php.net>
Sat, 30 Apr 2005 04:30:20 +0000 (04:30 +0000)
committerfoobar <sniper@php.net>
Sat, 30 Apr 2005 04:30:20 +0000 (04:30 +0000)
NEWS
configure.in
scripts/Makefile.frag
scripts/man1/php-config.1.in [new file with mode: 0644]
scripts/man1/phpize.1.in [new file with mode: 0644]

diff --git a/NEWS b/NEWS
index 9a6789185191ef8ce3512e9785dd910387deaee2..5b1094b6dcd6f6c87741c191332329c8121e4da3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2005, PHP 5.0.5
+- Added man pages for "phpize" and "php-config" scripts. (Jakub Vrana)
 - Added support for .cc files in extensions. (Brian)
 - Added PHP_INT_MAX and PHP_INT_SIZE as predefined constants. (Andrey)
 - Removed php_check_syntax() function which never worked properly. (Ilia)
index b9a29e53e756f1ae616e0093e96c15058c2dbab9..b64763414ea1ad9e33996a06e75e6805bfc24871 100644 (file)
@@ -1313,9 +1313,11 @@ AC_DEFINE([HAVE_BUILD_DEFS_H], 1, [ ])
 
 $php_shtool mkdir -p pear/scripts
 $php_shtool mkdir -p scripts
+$php_shtool mkdir -p scripts/man1
 
 ALL_OUTPUT_FILES="php5.spec main/build-defs.h \
-scripts/phpize scripts/php-config \
+scripts/phpize scripts/man1/phpize.1 \
+scripts/php-config scripts/man1/php-config.1 \
 $PHP_OUTPUT_FILES"
 
 AC_OUTPUT($ALL_OUTPUT_FILES, [], [
index d5fcf17ed36ed7434f22a35b5f841f3672f7ee4c..f2b6e4c37a5f50c8892b0b7edb936ee5e87fc142 100644 (file)
@@ -21,7 +21,8 @@ BUILD_FILES_EXEC = \
        config.sub
 
 bin_SCRIPTS = phpize php-config
-bin_src_SCRIPTS = 
+bin_src_SCRIPTS =
+man_PAGES = phpize.1 php-config.1
 
 install-build:
        @echo "Installing build environment:     $(INSTALL_ROOT)$(phpbuilddir)/"
@@ -79,7 +80,13 @@ install-programs: $(builddir)/phpize $(builddir)/php-config
                echo "  program: $(program_prefix)$$prog$(program_suffix)"; \
                $(INSTALL) -m 755 $(top_srcdir)/scripts/$$prog $(INSTALL_ROOT)$(bindir)/$(program_prefix)$$prog$(program_suffix); \
        done
-
+       @echo "Installing man pages:             $(INSTALL_ROOT)$(mandir)/man1/"
+       @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
+       @for page in $(man_PAGES); do \
+               echo "  page: $$page"; \
+               $(INSTALL_DATA) $(builddir)/man1/$$page $(INSTALL_ROOT)$(mandir)/man1/$$page; \
+       done
+       
 $(builddir)/phpize: $(srcdir)/phpize.in $(top_builddir)/config.status
        (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
 
diff --git a/scripts/man1/php-config.1.in b/scripts/man1/php-config.1.in
new file mode 100644 (file)
index 0000000..78b0252
--- /dev/null
@@ -0,0 +1,77 @@
+./"    +----------------------------------------------------------------------+
+./"    | PHP Version 5                                                        |
+./"    +----------------------------------------------------------------------+
+./"    | Copyright (c) 1997-2004 The PHP Group                                |
+./"    +----------------------------------------------------------------------+
+./"    | This source file is subject to version 3.0 of the PHP license,       |
+./"    | that is bundled with this package in the file LICENSE, and is        |
+./"    | available through the world-wide-web at the following url:           |
+./"    | http://www.php.net/license/3_0.txt.                                  |
+./"    | If you did not receive a copy of the PHP license and are unable to   |
+./"    | obtain it through the world-wide-web, please send a note to          |
+./"    | license@php.net so we can mail you a copy immediately.               |
+./"    +----------------------------------------------------------------------+
+./"    | Author: Jakub Vrana <vrana@php.net>                                  |
+./"    +----------------------------------------------------------------------+
+./" 
+./" $Id$
+./" 
+.TH php\-config 1 "Apr 2005" "The PHP Group" "Scripting Language"
+.SH NAME
+.TP 15
+.B php\-config
+Get information about PHP configuration
+.SH SYNOPSIS
+.B php\-config
+[options]
+.LP
+.SH DESCRIPTION
+.B php\-config
+is a simple shell script for obtaining information about installed PHP configuration.
+.SH OPTIONS
+.TP 15
+.PD 0
+.B \-\-prefix
+Directory prefix where PHP is installed, e.g. /usr/local
+.TP
+.PD 0
+.B \-\-includes
+List of \-I options with all include files
+.TP
+.PD 0
+.B \-\-ldflags
+LD Flags which PHP was compiled with
+.TP
+.PD 0
+.B \-\-libs
+Extra libraries which PHP was compiled with
+.TP
+.PD 0
+.B \-\-extension-dir
+Directory where extensions are searched by default
+.TP
+.PD 0
+.B \-\-version
+PHP version
+.TP
+.PD 1
+.P
+.SH SEE ALSO
+.BR php (1)
+.SH VERSION INFORMATION
+This manpage describes \fBphp\fP, version @PHP_VERSION@.
+.SH COPYRIGHT
+Copyright \(co 1997\-2005 The PHP Group
+.LP
+This source file is subject to version 3.0 of the PHP license,
+that is bundled with this package in the file LICENSE, and is
+available through the world-wide-web at
+.PD 0
+.P
+.B http://www.php.net/license/3_0.txt
+.PD 1
+.P
+If you did not receive a copy of the PHP license and are unable to
+obtain it through the world-wide-web, please send a note to
+.B license@php.net 
+so we can mail you a copy immediately.
diff --git a/scripts/man1/phpize.1.in b/scripts/man1/phpize.1.in
new file mode 100644 (file)
index 0000000..7ede86a
--- /dev/null
@@ -0,0 +1,68 @@
+./"    +----------------------------------------------------------------------+
+./"    | PHP Version 5                                                        |
+./"    +----------------------------------------------------------------------+
+./"    | Copyright (c) 1997-2004 The PHP Group                                |
+./"    +----------------------------------------------------------------------+
+./"    | This source file is subject to version 3.0 of the PHP license,       |
+./"    | that is bundled with this package in the file LICENSE, and is        |
+./"    | available through the world-wide-web at the following url:           |
+./"    | http://www.php.net/license/3_0.txt.                                  |
+./"    | If you did not receive a copy of the PHP license and are unable to   |
+./"    | obtain it through the world-wide-web, please send a note to          |
+./"    | license@php.net so we can mail you a copy immediately.               |
+./"    +----------------------------------------------------------------------+
+./"    | Author: Jakub Vrana <vrana@php.net>                                  |
+./"    +----------------------------------------------------------------------+
+./" 
+./" $Id$
+./" 
+.TH phpize 1 "Apr 2005" "The PHP Group" "Scripting Language"
+.SH NAME
+.TP 15
+.B phpize
+Prepare PHP extension for compiling
+.SH SYNOPSIS
+.B phpize
+[options]
+.LP
+.SH DESCRIPTION
+.B phpize
+is a shell script to prepare PHP extension for compiling.
+.SH OPTIONS
+.TP 15
+.PD 0
+.B \-\-clean
+Remove all created files
+.TP
+.PD 0
+.B \-\-help
+Prints usage information
+.TP
+.PD 0
+.B \-\-version
+.TP
+.PD 1
+.B \-v
+Prints API version information
+.TP
+.PD 1
+.P
+.SH SEE ALSO
+.BR php (1)
+.SH VERSION INFORMATION
+This manpage describes \fBphp\fP, version @PHP_VERSION@.
+.SH COPYRIGHT
+Copyright \(co 1997\-2005 The PHP Group
+.LP
+This source file is subject to version 3.0 of the PHP license,
+that is bundled with this package in the file LICENSE, and is
+available through the world-wide-web at
+.PD 0
+.P
+.B http://www.php.net/license/3_0.txt
+.PD 1
+.P
+If you did not receive a copy of the PHP license and are unable to
+obtain it through the world-wide-web, please send a note to
+.B license@php.net 
+so we can mail you a copy immediately.