#!/bin/sh # This script prepares CS documentation for online publication by adding # user-annotation capability. DIRS=$@ EFED="perl Utilities/efed.pl" for d in $DIRS; do if test -d $d; then echo "Preparing $d for annotation capability." $EFED -d \ -a "/^(.*)\.html/" \ -r "html=php" \ -e "s/href *= *\"(?!http\:\/\/)([^\"]*)\.html([^\"]*)\"/href=\"\$1.php\$2\"/gi" \ -e "s:(.*):\$1:i" \ -e "s:::i" \ $d cp Utilities/*.php $d fi done