#! /bin/bash
# installLpc21isp : 
#	Run this script to get the source of lpc21isp, build and install
#	The home of lpc21isp is http://sourceforge.net/projects/lpc21isp/
#	The download site is mirror at JAIST
rm lpc21isp-1.64.tar.gz -f
wget http://downloads.sourceforge.net/project/lpc21isp/lpc21isp/1.64/lpc21isp-1.64.tar.gz?use_mirror=jaist
tar xvzf lpc21isp-1.64.tar.gz
rm lpc21isp-1.64.tar.gz
cd lpc21isp-1.64
make clean
make 
sudo mkdir /opt/lpc21isp
sudo mv lpc21isp /opt/lpc21isp
cd ..
rm lpc21isp-1.64 -r
echo
echo The lpc21isp has been installed on /opt/lpc21isp 
