Actually, Carl, you would be better off starting with
this script. I've just realised it's changed quite
a bit since I posted the message a year ago. It's
still a bit of a mess though, and you'll obviously
have to change the bits specific to me, but it'll
give you a useful start. You'll also need
refcheck.py to check all the cross-references match,
but this is rather tied to my particular file
structure. I'll have a look at generalising it so
I can put it in scripts/auxiliar.
Trevor
#!/bin/sh
DIRECTORY=$1
NAME=$2
FROMDIR="C:/Users/Trevor/LilyPond-git"
DOCDIR="C:/Users/Trevor/LilyPond-docs"
TODIR=$DOCDIR/$NAME
if test ! -d $TODIR; then
mkdir $TODIR
fi
if test ! -d $TODIR/out; then
mkdir $TODIR/out
fi
cp $FROMDIR/Documentation/common-macros.itexi
$TODIR/common-macros.itexi
cp $FROMDIR/Documentation/macros.itexi $DOCDIR/macros.itexi
cp $DOCDIR/version.itexi $TODIR/version.itexi
if test -e cp_$NAME.sh; then
cp_$NAME.sh $FROMDIR $TODIR
fi
if test -e $TODIR/$NAME.html; then
rm $TODIR/$NAME.html
fi
if test -e $TODIR/out/$NAME.texi; then
rm $TODIR/out/$NAME.texi
fi
echo Running lilypond-book
cd $FROMDIR/Documentation
python "c:/program files/lilypond/usr/bin/lilypond-book.py" \
-f texi-html \
-I $FROMDIR/Documentation/snippets \
-I $FROMDIR/Documentation/snippets/new \
-I $FROMDIR/input/manual \
-I $FROMDIR/Documentation/included \
-o $TODIR/out \
$FROMDIR/Documentation/$DIRECTORY/$NAME.itely
BOOKRC=$?
if [ $BOOKRC != 0 ]; then
echo "Lilypond-book returned code $BOOKRC"
exit $BOOKRC
fi
echo Running RefCheck
cd d:/users/trevor/leisure/computing/python/refcheck
python refcheck.py
cd $DOCDIR
if test -f $TODIR/out/$NAME.texi; then
echo Running texi2html
cat $DOCDIR/macros.texi $DOCDIR/macros.itexi $TODIR/out/$NAME.texi
> $TODIR/$NAME.texi
c:/programs/texi2html/texi2html --no-validate --output=$TODIR/out/$NAME.html
$TODIR/$NAME.texi
fi
if test -f $TODIR/out/$NAME.html; then
echo Running IE
"C:\Program Files\Internet Explorer\iexplore.exe"
$TODIR/out/$NAME.html
fi
read -p "delete files? (y/n): "
if [ "$REPLY" = "y" ]; then
echo "deleting files"
rm -rf $TODIR
fi
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel