mtd/Documentation/DocBook Makefile,NONE,1.1 docbook.sh,NONE,1.1

gleixner at infradead.org gleixner at infradead.org
Tue Jun 1 17:10:19 EDT 2004


Update of /home/cvs/mtd/Documentation/DocBook
In directory phoenix.infradead.org:/tmp/cvs-serv18671

Added Files:
	Makefile docbook.sh 
Log Message:
Add makefile and script to export html docs

***** Error reading new file: [Errno 2] No such file or directory: 'Makefile'
--- NEW FILE docbook.sh ---
#!/bin/sh
#
# 
#

# Display usage of this script
usage () {
	echo "usage:  $0 kernelpath mtdpath htmlpath book"
	exit 1
}

KERNELPATH=$1
MTDPATH=$2
HTMLPATH=$3
BOOK=$4

if [ -z "$KERNELPATH" ] || [ -z "$MTDPATH" ] || [ -z "$HTMLPATH" ] || [ -z "$BOOK" ]
then
	usage;
fi	

# create output directory
mkdir -p $HTMLPATH
# goto the source path
cd $MTDPATH

# link the scripts directory, as this crappy code does not work otherwise
ln -sf $KERNELPATH/scripts .

# create the sgml file
scripts/basic/docproc doc Documentation/DocBook/$BOOK.tmpl >Documentation/DocBook/$BOOK.sgml
# convert to html
db2html -o $HTMLPATH/$BOOK Documentation/DocBook/$BOOK.sgml

# clean up temporary stuff
rm -f scripts
rm -rf Documentation/DocBook/$BOOK





More information about the linux-mtd-cvs mailing list