note 2763 deleted from preface by jimw
| From: | jimw@php.net | Date: | Wed, 31 Oct 2001 00:50:39 +0000 |
| Subject: | note 2763 deleted from preface by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-19630@lists.php.net to get a copy of this message | ||
## Murty Rompalli m u r t y AT m u r t y DOT n e t
## Shell script to get PHP Annotated Document
##in one shot into one local file for printing
#
## The output may contain LONG continuous lines..make
##sure to break the lines
### especially in User added notes
#
####### DEFINE VARIABLES HERE
#
LYNX=lynx
# Set the following to nawk for SUN Solaris and gawk for Linux
GAWK=nawk
###### END VARIABLES
echo Preparing Table of Contents
$LYNX -source -nolist -dump http://www.php.net/manual |
sed -n /start\ next/,/start\ next/p |
sed 's/^CLASS="BOOK"/<DIV CLASS="BOOK"/1' > php.html
for c in `$LYNX -dump php.html |
sed -n /References/,//p |
grep file: |
awk -F/ '{print $NF}' |
grep -v \#`
do
echo Getting $c
echo '<p><hr><p>' >> php.html
$LYNX -source -nolist -dump http://www.php.net/manual/$c
|
sed -n /start\ next/,/start\ next/p >> php.html
done
mkdir gifs
for g in `grep SRC= php.html |
$GAWK -F'SRC=' '{print $2}' |
awk '{print $1}' |
$GAWK -F'gifs/' '{print $2}' |
sed "s/\'//g" |
sed 's/\"//g' |
sort -u`
do
echo Getting $g
$LYNX -dump http://www.php.net/gifs/$g > gifs/$g
done