monodoc documentation generator

Chris Roberts <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
Hello,

I don't have portable.net(csdoc) installed so I
whipped up a cheesy script to generate monodoc
files.  Maybe someone will find it useful and
clean it up or enhance it.


--Chris






 

__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/
monodoc.sh (application/x-sh, 1 KB)
#!/bin/sh
MONODOC=monodoc
SOURCESDIR=`$MONODOC --get-sourcesdir`

if test -z $1;then
	echo "Usage: " $0 "/path/to/wx.NET.dll"
	exit
fi

if test $UID != 0; then
	echo $0 "needs to be run as root to install files properly"
	exit
fi

# create the source file
echo "<?xml version=\"1.0\"?>" > wx.source
echo "<monodoc>" >> wx.source
echo "  <source provider=\"ecma\" basefile=\"wx\" path=\"wx\"/>" >> wx.source
echo "</monodoc>" >> wx.source


# generate the xml files
$MONODOC --update $1 -o en -f

# build the zip and tree files
$MONODOC --assemble --ecma en -o wx

# copy the files to the monodoc sources dir
install -m 644 wx.zip wx.tree wx.source $SOURCESDIR

# clean up
rm -r en wx.tree wx.zip wx.source


echo
echo
echo "##################################################################"
echo "You will need to add the following line to:"`dirname $SOURCESDIR`"/monodoc.xml"
echo "<node label=\"wx.NET\" name=\"wx\"/>"
echo
echo "And then run monodoc --make-index"
echo "##################################################################"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.