echo "Generate compilescript..."
java XSLConverter ../$1.xml $3/$2/compilescript.xsl compilescript >/dev/null
chmod u+x compilescript
echo

echo Running compilescript
./compilescript ../$1.xml $3 $2
rm -f compilescript

cp $3/$2/LayoutUnit.pas .
cp $3/$2/GIFImage.* .
cp ../*.gif . 2>/dev/null

echo "Making integrate script"
echo
java XSLConverter ../$1.xml $3/$2/integratescript.xsl integrate >/dev/null
chmod u+x integrate

echo "After you have inserted your personal code in the codeframe, you can"
echo "call the intergrate script (without parameters) to build the sourcecode"
echo "for the specific language environment."
