4 YODLDIR
=$SRCDIR/..
/docs
/yodldocs
5 MANPAGEDIR
=$SRCDIR/..
/docs
/manpages
6 HTMLDIR
=$SRCDIR/..
/docs
/htmldocs
8 echo "Re-creating man pages and HTML pages from YODL sources..."
10 if [ ! -d $MANPAGEDIR ]; then
11 echo "directory $MANPAGEDIR does not exist, are we in the right place?"
15 if [ ! -d $HTMLDIR ]; then
16 echo "directory $HTMLDIR does not exist, are we in the right place?"
20 if [ ! -d $YODLDIR ]; then
21 echo "directory $YODLDIR does not exist, are we in the right place?"
31 # Create the basename from the YODL manpage
33 bn
=`echo $d | sed -e 's/\.yo//'`
38 echo "Creating man pages..."
42 if [ ! -f $bn.man
]; then
43 echo "Failed to make man page for $d"
46 cp $bn.man ..
/manpages
/$bn ||
echo "Cannot create $YODLDIR/../manpages/$bn"
49 echo "Creating html versions of man pages..."
53 if [ ! -f $bn.html
]; then
54 echo "Failed to make html page for $d"
57 cp $bn.html ..
/htmldocs ||
echo "Cannot create $YODLDIR/../htmldocs/$bn.html"
62 # Non man-page YODL docs - just make html and text.
67 if [ ! -f $bn.html
]; then
68 echo "Failed to make html page for $d"
71 cp $bn.html ..
/htmldocs ||
echo "Cannot create $YODLDIR/../htmldocs/$bn.html"
75 if [ ! -f $bn.txt
]; then
76 echo "Failed to make text page for $d"
79 cp $bn.txt ..
/textdocs ||
echo "Cannot create $YODLDIR/../textdocs/$bn.txt"
85 echo "Remember to CVS check in your changes..."