#!/bin/bash

#Some cleanup
rm -rf src
rm -rf install
rm -rf tcl8.5.11
mkdir src install

#Download from ISSM server
$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/tcl8.5.11.tar.gz' 'tcl8.5.11.tar.gz'

#Untar 
tar -zxvf  tcl8.5.11.tar.gz

#Move tcl into src directory
mv tcl8.5.11/* src
rm -rf tcl8.5.11

#Configure tcl
ver="8.4.12"

cd src
make -C ./macosx install INSTALL_ROOT="$ISSM_DIR/externalpackages/tcl/install"
