Skip to content

Commit 40b6c60

Browse files
author
foobar
committed
- Added man pages for "phpize" and "php-config" scripts. (Jakub Vrana)
1 parent d768208 commit 40b6c60

File tree

4 files changed

+156
-2
lines changed

4 files changed

+156
-2
lines changed

configure.in

+3-1
Original file line numberDiff line numberDiff line change
@@ -1249,9 +1249,11 @@ AC_DEFINE([HAVE_BUILD_DEFS_H], 1, [ ])
12491249

12501250
$php_shtool mkdir -p pear/scripts
12511251
$php_shtool mkdir -p scripts
1252+
$php_shtool mkdir -p scripts/man1
12521253

12531254
ALL_OUTPUT_FILES="php5.spec main/build-defs.h \
1254-
scripts/phpize scripts/php-config \
1255+
scripts/phpize scripts/man1/phpize.1 \
1256+
scripts/php-config scripts/man1/php-config.1 \
12551257
$PHP_OUTPUT_FILES"
12561258

12571259
AC_OUTPUT($ALL_OUTPUT_FILES, [], [

scripts/Makefile.frag

+8-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ BUILD_FILES_EXEC = \
2222

2323
bin_SCRIPTS = phpize php-config
2424
bin_src_SCRIPTS =
25+
man_PAGES = phpize.1 php-config.1
2526

2627
install-build:
2728
@echo "Installing build environment: $(INSTALL_ROOT)$(phpbuilddir)/"
@@ -78,7 +79,13 @@ install-programs: $(builddir)/phpize $(builddir)/php-config
7879
echo " program: $(program_prefix)$$prog$(program_suffix)"; \
7980
$(INSTALL) -m 755 $(top_srcdir)/scripts/$$prog $(INSTALL_ROOT)$(bindir)/$(program_prefix)$$prog$(program_suffix); \
8081
done
81-
82+
@echo "Installing man pages: $(INSTALL_ROOT)$(mandir)/man1/"
83+
@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
84+
@for page in $(man_PAGES); do \
85+
echo " page: $$page"; \
86+
$(INSTALL_DATA) $(builddir)/man1/$$page $(INSTALL_ROOT)$(mandir)/man1/$$page; \
87+
done
88+
8289
$(builddir)/phpize: $(srcdir)/phpize.in $(top_builddir)/config.status
8390
(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
8491

scripts/man1/php-config.1.in

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
./" +----------------------------------------------------------------------+
2+
./" | PHP Version 5 |
3+
./" +----------------------------------------------------------------------+
4+
./" | Copyright (c) 1997-2004 The PHP Group |
5+
./" +----------------------------------------------------------------------+
6+
./" | This source file is subject to version 3.0 of the PHP license, |
7+
./" | that is bundled with this package in the file LICENSE, and is |
8+
./" | available through the world-wide-web at the following url: |
9+
./" | http://www.php.net/license/3_0.txt. |
10+
./" | If you did not receive a copy of the PHP license and are unable to |
11+
./" | obtain it through the world-wide-web, please send a note to |
12+
./" | [email protected] so we can mail you a copy immediately. |
13+
./" +----------------------------------------------------------------------+
14+
./" | Author: Jakub Vrana <[email protected]> |
15+
./" +----------------------------------------------------------------------+
16+
./"
17+
./" $Id$
18+
./"
19+
.TH php\-config 1 "Apr 2005" "The PHP Group" "Scripting Language"
20+
.SH NAME
21+
.TP 15
22+
.B php\-config
23+
Get information about PHP configuration
24+
.SH SYNOPSIS
25+
.B php\-config
26+
[options]
27+
.LP
28+
.SH DESCRIPTION
29+
.B php\-config
30+
is a simple shell script for obtaining information about installed PHP configuration.
31+
.SH OPTIONS
32+
.TP 15
33+
.PD 0
34+
.B \-\-prefix
35+
Directory prefix where PHP is installed, e.g. /usr/local
36+
.TP
37+
.PD 0
38+
.B \-\-includes
39+
List of \-I options with all include files
40+
.TP
41+
.PD 0
42+
.B \-\-ldflags
43+
LD Flags which PHP was compiled with
44+
.TP
45+
.PD 0
46+
.B \-\-libs
47+
Extra libraries which PHP was compiled with
48+
.TP
49+
.PD 0
50+
.B \-\-extension-dir
51+
Directory where extensions are searched by default
52+
.TP
53+
.PD 0
54+
.B \-\-version
55+
PHP version
56+
.TP
57+
.PD 1
58+
.P
59+
.SH SEE ALSO
60+
.BR php (1)
61+
.SH VERSION INFORMATION
62+
This manpage describes \fBphp\fP, version @PHP_VERSION@.
63+
.SH COPYRIGHT
64+
Copyright \(co 1997\-2005 The PHP Group
65+
.LP
66+
This source file is subject to version 3.0 of the PHP license,
67+
that is bundled with this package in the file LICENSE, and is
68+
available through the world-wide-web at
69+
.PD 0
70+
.P
71+
.B http://www.php.net/license/3_0.txt
72+
.PD 1
73+
.P
74+
If you did not receive a copy of the PHP license and are unable to
75+
obtain it through the world-wide-web, please send a note to
76+
77+
so we can mail you a copy immediately.

scripts/man1/phpize.1.in

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
./" +----------------------------------------------------------------------+
2+
./" | PHP Version 5 |
3+
./" +----------------------------------------------------------------------+
4+
./" | Copyright (c) 1997-2004 The PHP Group |
5+
./" +----------------------------------------------------------------------+
6+
./" | This source file is subject to version 3.0 of the PHP license, |
7+
./" | that is bundled with this package in the file LICENSE, and is |
8+
./" | available through the world-wide-web at the following url: |
9+
./" | http://www.php.net/license/3_0.txt. |
10+
./" | If you did not receive a copy of the PHP license and are unable to |
11+
./" | obtain it through the world-wide-web, please send a note to |
12+
./" | [email protected] so we can mail you a copy immediately. |
13+
./" +----------------------------------------------------------------------+
14+
./" | Author: Jakub Vrana <[email protected]> |
15+
./" +----------------------------------------------------------------------+
16+
./"
17+
./" $Id$
18+
./"
19+
.TH phpize 1 "Apr 2005" "The PHP Group" "Scripting Language"
20+
.SH NAME
21+
.TP 15
22+
.B phpize
23+
Prepare PHP extension for compiling
24+
.SH SYNOPSIS
25+
.B phpize
26+
[options]
27+
.LP
28+
.SH DESCRIPTION
29+
.B phpize
30+
is a shell script to prepare PHP extension for compiling.
31+
.SH OPTIONS
32+
.TP 15
33+
.PD 0
34+
.B \-\-clean
35+
Remove all created files
36+
.TP
37+
.PD 0
38+
.B \-\-help
39+
Prints usage information
40+
.TP
41+
.PD 0
42+
.B \-\-version
43+
.TP
44+
.PD 1
45+
.B \-v
46+
Prints API version information
47+
.TP
48+
.PD 1
49+
.P
50+
.SH SEE ALSO
51+
.BR php (1)
52+
.SH VERSION INFORMATION
53+
This manpage describes \fBphp\fP, version @PHP_VERSION@.
54+
.SH COPYRIGHT
55+
Copyright \(co 1997\-2005 The PHP Group
56+
.LP
57+
This source file is subject to version 3.0 of the PHP license,
58+
that is bundled with this package in the file LICENSE, and is
59+
available through the world-wide-web at
60+
.PD 0
61+
.P
62+
.B http://www.php.net/license/3_0.txt
63+
.PD 1
64+
.P
65+
If you did not receive a copy of the PHP license and are unable to
66+
obtain it through the world-wide-web, please send a note to
67+
68+
so we can mail you a copy immediately.

0 commit comments

Comments
 (0)