#!/bin/sh
lista="defslists ldapbasedns ttaensbase checklist makelogsdir maketools expectchanges"
lista="doloadfiles"
lista="doupdate fixstampdata doupgrade dopatch"

baseDir=$STTA/install/info
template=$baseDir/es/templ/page
head_template=$baseDir/es/templ/head
body_template=$baseDir/es/templ/body
msg_template=$baseDir/es/templ/msg
for file in `echo $lista`
do
  name=$file
  [ -r $file ] &&  name=`echo $file | sed 's/.es//g' | sed 's/.html//g'`
  cat $template | sed "s/NAME/$name/g"  >$baseDir/$name.html
  [ -r $file ] && rm $file
  cat $head_template >$baseDir/es/head/$name.html
  cat $msg_template >$baseDir/es/msg/$name.html
  cat $body_template >$baseDir/es/body/$name.html
done
