# echo this script generates an tcltk interface framework and a codeframework
# aanroepen met applicatie bestand programmabestand 

#copy the images to the current dir
cp ../*.gif .i 2> /dev/null

echo "Making application programm"
java XSLConverter ../$1.xml $3/$2/tcltkapp.xsl $1.tcl
echo "done"

chmod ugo+x $1.tcl

echo "Initialing build proces"
java XSLConverter ../$1.xml $3/$2/tcltkscript.xsl tcltkbuild 
echo "done"

chmod +x tcltkbuild 

echo "Building"
./tcltkbuild $3/$2

rm -f tcltkbuild

echo "making integrate command"

java XSLConverter ../$1.xml $3/$2/tcltkintcodeint.xsl integrate

chmod +x integrate

echo "finished"
