Compiling VUE

In my ever expanding quest for places to integrtate Sakai into, I have decided to start playing with VUE (http://vue.tccs.tufts.edu/). VUE is pretty cool – it makes context maps.
In my crazy design thoughts, I want Sakai to hand VUE maps over web services. Those maps will contain information about sites the user has access to on the Sakai Host, and pages within those sites.
This is a long term fun thing for me. Thanks to Jeff K and Anoop K for their help on this.
But I figured I would share how I got VUE to compile on my Mac in case you want to be a cool VUE developer too.
It is (yet another) Chuck C-Schell script that I wronte because I have a terrible memory!
It grabs source, does a bit of fiddling with the source, compiles, and runs VUE.


#!/bin/csh
# Chuck Severance’s VUE bootstrap script – Only tested on a Mac OS/X
# To run this type
# cd ~/dev
# csh vue-bootstrap.csh
set MYPATH=`pwd`
# Download VUE source using curl if necessary
if ( -d keepzips ) then
echo keepzips directory exists…
else
echo Creating keepzips directory …
mkdir keepzips
endif
if ( -f keepzips/VUE_1_4_0_src.zip ) then
echo keepzips/VUE_1_4_0_src.zip exists…
else
echo Downloading keepzips/VUE_1_4_0_src.zip …
cd keepzips
curl -O http://easynews.dl.sourceforge.net/sourceforge/tuftsvue/VUE_1_4_0_src.zip
cd $MYPATH
endif
# clean up the directory and save current contents
/bin/rm -rf VUE-reallyold
if ( -d VUE ) then
mv VUE-old VUE-reallyold
echo Removing old version in the background
/bin/rm -rf VUE-reallyold &
mv VUE VUE-old
endif
mkdir VUE
mkdir VUE/lib
mkdir VUE/VUE_1_4_0_src
cd VUE/VUE_1_4_0_src
unzip $MYPATH/keepzips/VUE_1_4_0_src.zip
echo Moving jars from the checkout directory to the lib directory
mv *.jar ../lib
# comppile and run VUE
ant compile
ant