hholzgra Sun Jan 27 11:57:51 2002 EDT
Modified files:
/phpdoc/scripts funcsummary.awk genfunclist.sh genfuncsummary.sh
Log:
- fix awk warnings
- sort input file list to make output files independant of filesystem
layout
- always replace c sourcedir with 'php4'
Index: phpdoc/scripts/funcsummary.awk
diff -u phpdoc/scripts/funcsummary.awk:1.1 phpdoc/scripts/funcsummary.awk:1.2
--- phpdoc/scripts/funcsummary.awk:1.1 Sun Jan 6 10:42:31 2002
+++ phpdoc/scripts/funcsummary.awk Sun Jan 27 11:57:50 2002
@@ -1,5 +1,5 @@
/^[[:space:]]*\/\*[[:space:]]*\{\{\{[[:space:]]*proto/ {
- split($0,proto,"proto[[:space:]]+|\*/[[:space:]]*$");
+ split($0,proto,"proto[[:space:]]+|\\*/[[:space:]]*$");
parse=1;
same=1;
lc=0;
@@ -11,7 +11,7 @@
lines = sprintf("%s %s ",lines,line[i]);
}
if(!same) {
- split($0,temp,"\*/[[:space:]]*$");
+ split($0,temp,"\\*/[[:space:]]*$");
lines = sprintf("%s %s ",lines,temp[1]);
}
printf("%s --- %s\n",proto[2],lines);
@@ -21,7 +21,7 @@
}
{
if(parse && !same) {
- split($0,temp,"\*/[[:space:]]*$");
+ split($0,temp,"\\*/[[:space:]]*$");
line[lc++]=temp[1];
}
Index: phpdoc/scripts/genfunclist.sh
diff -u phpdoc/scripts/genfunclist.sh:1.2 phpdoc/scripts/genfunclist.sh:1.3
--- phpdoc/scripts/genfunclist.sh:1.2 Wed Jan 9 09:50:45 2002
+++ phpdoc/scripts/genfunclist.sh Sun Jan 27 11:57:50 2002
@@ -17,10 +17,10 @@
# | Rasmus Lerdorf <[EMAIL PROTECTED]> |
# +----------------------------------------------------------------------+
#
-# $Id: genfunclist.sh,v 1.2 2002/01/09 14:50:45 jan Exp $
+# $Id: genfunclist.sh,v 1.3 2002/01/27 16:57:50 hholzgra Exp $
-for i in `find $1 -name "*.[c]" -print -o -name "*.ec" -print | xargs egrep -li
function_entry` ; do
- echo $i | sed -e 's/\.\.\//# /'
+for i in `find $1 -name "*.[c]" -print -o -name "*.ec" -print | xargs egrep -li
+function_entry | sort` ; do
+ echo $i | sed -e "s|$1|# php4|'
if test -f funcparse.awk ; then
awk -f funcparse.awk < $i | sort
elif test -f scripts/funcparse.awk; then
Index: phpdoc/scripts/genfuncsummary.sh
diff -u phpdoc/scripts/genfuncsummary.sh:1.4 phpdoc/scripts/genfuncsummary.sh:1.5
--- phpdoc/scripts/genfuncsummary.sh:1.4 Sun Jan 27 11:37:44 2002
+++ phpdoc/scripts/genfuncsummary.sh Sun Jan 27 11:57:50 2002
@@ -16,7 +16,7 @@
# | Authors: Gabor Hoitsy <[EMAIL PROTECTED]> |
# +----------------------------------------------------------------------+
#
-# $Id: genfuncsummary.sh,v 1.4 2002/01/27 16:37:44 hholzgra Exp $
+# $Id: genfuncsummary.sh,v 1.5 2002/01/27 16:57:50 hholzgra Exp $
if test -f funcsummary.awk; then
awkscript=funcsummary.awk
@@ -28,8 +28,8 @@
fi
-for i in `find $1 -name "*.[ch]" -print -o -name "*.ec" -print | xargs egrep -li "{{{
proto"` ; do
- echo $i | sed -e 's/\.\.\//# /'
+for i in `find $1 -name "*.[ch]" -print -o -name "*.ec" -print | xargs egrep -li "{{{
+proto" | sort` ; do
+ echo $i | sed -e "s|$1|# php4|"
awk -f $awkscript < $i | sort +1 | awk -F "---" '{ print $1; print $2; }' | sed
's/^[[:space:]]+//'
done
if test -f $1/language-scanner.lex # only in PHP3