CVS update: phpdoc
| From: | jim | Date: | Sun, 20 Jun 1999 03:27:52 +0000 |
| Subject: | CVS update: phpdoc | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-7183@lists.php.net to get a copy of this message | ||
Date: Saturday June 19, 1999 @ 23:27
Author: jim
Update of /repository/phpdoc
In directory php:/tmp/cvs-serv23146
Modified Files:
.cvsignore Makefile.in configure.in genfunclist genfuncsummary
Removed Files:
funclist.txt
Log Message:
Clean up the support programs a bit.
Index: phpdoc/.cvsignore
diff -u phpdoc/.cvsignore:1.4 phpdoc/.cvsignore:1.5
--- phpdoc/.cvsignore:1.4 Fri Jun 18 21:10:57 1999
+++ phpdoc/.cvsignore Sat Jun 19 23:27:52 1999
@@ -28,3 +28,8 @@
manual.prc
manual.txt.gz
manual.zip
+funclist.txt
+funcsummary.txt
+status.txt
+missing.txt
+diff
Index: phpdoc/Makefile.in
diff -u phpdoc/Makefile.in:1.7 phpdoc/Makefile.in:1.8
--- phpdoc/Makefile.in:1.7 Sat Jun 19 22:25:30 1999
+++ phpdoc/Makefile.in Sat Jun 19 23:27:52 1999
@@ -26,11 +26,12 @@
# +----------------------------------------------------------------------+
#
-# $Id: Makefile.in,v 1.7 1999/06/20 02:25:30 jim Exp $
+# $Id: Makefile.in,v 1.8 1999/06/20 03:27:52 jim Exp $
#
VPATH=@srcdir@
srcdir=@srcdir@
+PHP_SOURCE=@PHP_SOURCE@
VERSION="@PHP_VERSION@"
HTML_STYLESHEET=$(srcdir)/html.dsl
@@ -139,10 +140,18 @@
ps: manual.ps
howto: howto.html
+FORCE:
+
+funclist.txt: FORCE
+ $(srcdir)/genfunclist $(PHP_SOURCE) > funclist.txt
+
+funcsummary.txt: FORCE
+ $(srcdir)/genfuncsummary $(PHP_SOURCE) > funcsummary.txt
+
Makefile: $(srcdir)/Makefile.in ./config.status
CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
-checkdoc: $(srcdir)/checkdoc ./config.status
+checkdoc: $(srcdir)/checkdoc.in ./config.status
CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
mirror-files: $(MIRROR_TARGETS)
@@ -169,9 +178,11 @@
manual-snapshot.tar.gz: bigmanual.html html/manual.html manual.rtf manual.txt
tar -cvzf $@ bigmanual.html html/*.html manual.rtf manual.txt
-status: checkdoc
+status: checkdoc ./funclist.txt
$(srcdir)/checkdoc -s > $(srcdir)/status.txt
$(srcdir)/checkdoc -m > $(srcdir)/missing.txt
+
+summary: ./funcsummary.txt
makedoc: makedoc.cc
g++ -o makedoc makedoc.cc
Index: phpdoc/configure.in
diff -u phpdoc/configure.in:1.8 phpdoc/configure.in:1.9
--- phpdoc/configure.in:1.8 Fri Jun 18 21:08:14 1999
+++ phpdoc/configure.in Sat Jun 19 23:27:52 1999
@@ -1,10 +1,13 @@
-dnl $Id: configure.in,v 1.8 1999/06/19 01:08:14 jim Exp $
+dnl $Id: configure.in,v 1.9 1999/06/20 03:27:52 jim Exp $
AC_INIT(global.ent)
PHP_BUILD_DATE=
date '+%Y-%m-%d'
AC_SUBST(PHP_BUILD_DATE)
+dnl used by checkdoc
+AC_PATH_PROG(PERL_PATH, perl)
+
AC_MSG_CHECKING(for docbook.dsl)
for dir in /usr/lib/dsssl/stylesheets/docbook \
/usr/lib/dsssl/stylesheets/nwalsh-modular \
@@ -34,5 +37,20 @@
AC_SUBST(DOCBOOK_HTML)
AC_SUBST(DOCBOOK_PRINT)
+AC_MSG_CHECKING(for PHP source path)
+AC_ARG_WITH(source,
+[ --with-source=[DIR] Look at the specified source directory],
+[
+ if test "$withval" = "no"; then
+ PHP_SOURCE=$withval
+ else
+ PHP_SOURCE=../php3
+ fi
+],[
+ PHP_SOURCE=../php3
+])
+AC_MSG_RESULT($PHP_SOURCE)
+AC_SUBST(PHP_SOURCE)
AC_OUTPUT(Makefile version.ent checkdoc howto.dsl html.dsl print.dsl phpweb.dsl)
+chmod +x checkdoc
Index: phpdoc/genfunclist
diff -u phpdoc/genfunclist:1.1.1.1 phpdoc/genfunclist:1.2
--- phpdoc/genfunclist:1.1.1.1 Sun Jun 6 14:50:25 1999
+++ phpdoc/genfunclist Sat Jun 19 23:27:52 1999
@@ -28,10 +28,10 @@
# | Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
# +----------------------------------------------------------------------+
#
-# $Id: genfunclist,v 1.1.1.1 1999/06/06 18:50:25 sas Exp $
+# $Id: genfunclist,v 1.2 1999/06/20 03:27:52 jim Exp $
-for i in find .. -name "*.[ch]" -print -o -name "*.ec" -print | xargs
egrep -li function_entry ; do
+for i in find $1 -name "*.[ch]" -print -o -name "*.ec" -print | xargs
egrep -li function_entry ; do
echo $i | sed -e 's/\.\.\//# /'
awk -f funcparse.awk < $i | sort
done
-awk -f funcparse.awk < ../language-scanner.lex | sort
+awk -f funcparse.awk < $1/language-scanner.lex | sort
Index: phpdoc/genfuncsummary
diff -u phpdoc/genfuncsummary:1.1.1.1 phpdoc/genfuncsummary:1.2
--- phpdoc/genfuncsummary:1.1.1.1 Sun Jun 6 14:50:25 1999
+++ phpdoc/genfuncsummary Sat Jun 19 23:27:52 1999
@@ -1,8 +1,8 @@
#!/bin/sh
-# $Id: genfuncsummary,v 1.1.1.1 1999/06/06 18:50:25 sas Exp $
+# $Id: genfuncsummary,v 1.2 1999/06/20 03:27:52 jim Exp $
-for i in find .. -name "*.[ch]" -print -o -name "*.ec" -print | xargs
egrep -li "{{{ proto" ; do
+for i in find $1 -name "*.[ch]" -print -o -name "*.ec" -print | xargs
egrep -li "{{{ proto" ; do
echo $i | sed -e 's/\.\.\//# /'
awk -f funcsummary.awk < $i | sort +1 | awk -F "---" '{ print $1; print $2;
}' | sed 's/^[[:space:]]+//'
done
-awk -f funcsummary.awk < ../language-scanner.lex | sort +1 | awk -F "---" '{
print $1; print $2; }'
+awk -f funcsummary.awk < $1/language-scanner.lex | sort +1 | awk -F "---" '{
print $1; print $2; }'