#!/bin/bash

#Some cleanup 
rm -rf install triangle
mkdir install

#Untar 
cd install
cp ../triangle.zip ./
unzip triangle.zip

#copy new makefile
cp ../configs/win7/configure.make ./
cp ../configs/win7/makefile ./

#Patch triangle.c 
patch triangle.c ../triangle.c.patch

#Compile triangle
make

#Patch triangle.h
patch triangle.h ../triangle.h.patch
