#!/bin/csh -f
foreach f ( *.html )
cat head |sed -e "s/MView/${f:r}/" > $f
cat /users/pascal/Apps/M1B.app/interfaces/${f:r}.hh | expand -4 |\
sed \
 -e 's:<:\&lt;:g' \
 -e 's:>:\&gt;:g' \
 -e 's-\(Pascal [J. ]*Bourguignon\)-<a href="mailto:pjb@imaginet.fr">\1</a>-g' \
 -e 's:MKeyboard:<a href="MKeyboard.html">MKeyboard</a>:g' \
 -e 's:MMdDirect:<a href="MMdDirect.html">MMdDirect</a>:g' \
 -e 's:MMdHayes:<a href="MMdHayes.html">MMdHayes</a>:g' \
 -e 's:MMdMinitel:<a href="MMdMinitel.html">MMdMinitel</a>:g' \
 -e 's:MMdViaSerial:<a href="MMdViaSerial.html">MMdViaSerial</a>:g' \
 -e 's:MModem:<a href="MModem.html">MModem</a>:g' \
 -e 's:MModule:<a href="MModule.html">MModule</a>:g' \
 -e 's:MObject:<a hrbupef="MObject.html">MObject</a>:g' \
 -e 's:MProtocol:<a href="MProtocol.html">MProtocol</a>:g' \
 -e 's:MScreen:<a href="MScreen.html">MScreen</a>:g' \
 -e 's:MSerial:<a href="MSerial.html">MSerial</a>:g' \
 -e 's:MSocket:<a href="MSocket.html">MSocket</a>:g' \
 -e 's:MTimer:<a href="MTimer.html">MTimer</a>:g' \
 -e 's:MView:<a href="MView.html">MView</a>:g' \
 -e 's:MkEYBOARD:<a href="MKeyboard.html">MKEYBOARD</a>:g' \
 -e 's:MMDDIRECT:<a href="MMdDirect.html">MMDDIRECT</a>:g' \
 -e 's:MMDHAYES:<a href="MMdHayes.html">MMDHAYES</a>:g' \
 -e 's:MMDMINITEL:<a href="MMdMinitel.html">MMDMINITEL</a>:g' \
 -e 's:MMDVIASERIAL:<a href="MMdViaSerial.html">MMDVIASERIAL</a>:g' \
 -e 's:MMODEM:<a href="MModem.html">MMODEM</a>:g' \
 -e 's:MMODULE:<a href="MModule.html">MMODULE</a>:g' \
 -e 's:MOBJECT:<a href="MObject.html">MOBJECT</a>:g' \
 -e 's:MPROTOCOL:<a href="MProtocol.html">MPROTOCOL</a>:g' \
 -e 's:MSCREEN:<a href="MScreen.html">MSCREEN</a>:g' \
 -e 's:MSERIAL:<a href="MSerial.html">MSERIAL</a>:g' \
 -e 's:MSOCKET:<a href="MSocket.html">MSOCKET</a>:g' \
 -e 's:MTIMER:<a href="MTimer.html">MTIMER</a>:g' \
 -e 's:MVIEW:<a href="MView.html">MVIEW</a>:g' \
  >> ${f:r}.html
cat tail >> ${f:r}.html
end
ViewGit