#!/bin/bash

# webcpp whole-dir script, with #include file hyperlinking
# by Jeffrey Bakker, 2001

if [ "$1" = "--help" ]; then
 echo "Usage: $0 [schemename]"
 echo ""
 exit 1
fi

SCHEME=$1

mkdir -p ht
for SOURCES in `ls *.h *.cpp`; do
 ./webcpp $SOURCES ht/$SOURCES.html -m -l -c=$SCHEME.scs --hyperlink -p=background.jpg
done

exit 0
