6 if test -z $FILES; then
10 YODLDIR
=$SRCDIR/..
/docs
/yodldocs
11 MANPAGEDIR
=$SRCDIR/..
/docs
/manpages
12 HTMLDIR
=$SRCDIR/..
/docs
/htmldocs
14 echo "Re-creating man pages and HTML pages from YODL sources..."
16 if [ ! -d $MANPAGEDIR ]; then
17 echo "directory $MANPAGEDIR does not exist, are we in the right place?"
21 if [ ! -d $HTMLDIR ]; then
22 echo "directory $HTMLDIR does not exist, are we in the right place?"
26 if [ ! -d $YODLDIR ]; then
27 echo "directory $YODLDIR does not exist, are we in the right place?"
37 # Create the basename from the YODL manpage
39 bn
=`echo $d | sed -e 's/\.yo//'`
44 echo "Creating man pages..."
48 if [ ! -f $bn.man
]; then
49 echo "Failed to make man page for $d"
52 cp $bn.man ..
/manpages
/$bn ||
echo "Cannot create $YODLDIR/../manpages/$bn"
55 echo "Creating html versions of man pages..."
59 if [ ! -f $bn.html
]; then
60 echo "Failed to make html page for $d"
63 cp $bn.html ..
/htmldocs ||
echo "Cannot create $YODLDIR/../htmldocs/$bn.html"
68 # Non man-page YODL docs - just make html and text.
73 if [ ! -f $bn.html
]; then
74 echo "Failed to make html page for $d"
77 cp $bn.html ..
/htmldocs ||
echo "Cannot create $YODLDIR/../htmldocs/$bn.html"
81 if [ ! -f $bn.txt
]; then
82 echo "Failed to make text page for $d"
85 cp $bn.txt ..
/textdocs ||
echo "Cannot create $YODLDIR/../textdocs/$bn.txt"
91 echo "Remember to CVS check in your changes..."