#!/bin/sh
# This short script replaces some files in the python distribution in
# order to make the Tix widget set callable from python. You must have
# Tk, Tcl, and Tix installed. If Tk, Tcl, and Tix are not installed system
# wide, the sources must exist in the same directory as the python
# distribution. The Tix url is:
#       http://www.cis.upenn.edu/~ioi/tix/tix.html
# Tix is described as set of "Mega Widgets" that have a "professional look
# and feel."
#
#  You must set these variables in order for this to work:

python=../Python-1.3
tk=../tk4.0
tcl=../tcl7.4
tix=../Tix4.0b4


echo "Copying tkintermodule.c to Modules directory..."
cp tkintermodule.c               ${python}/Modules
echo "Copying tkappinit.c to Modules directory..." 
cp tkappinit.c                   ${python}/Modules
echo "Copying Tkinter.py to the Python/Lib/tkinter directory..."
cp Tkinter.py                    ${python}/Lib/tkinter/
echo "Copying header files to the Modules directory..."
cp ${tk}/tk.h                    ${python}/Modules
cp ${tcl}/tcl.h                  ${python}/Modules
cp ${tix}/include/tix.h          ${python}/Modules

chmod 644 ${python}/Modules/tk.h
chmod 644 ${python}/Modules/tcl.h
echo "Done." 