#!/bin/bash

mkdir perl
pushd perl

wget http://files.bluecrow.net/asterisk/perl/BIGNetworks-Asterisk.tar.gz
wget http://files.bluecrow.net/asterisk/perl/Config-Tiny-2.10.tar.gz
wget http://files.bluecrow.net/asterisk/perl/Text-CSV-0.01.tar.gz
wget http://files.bluecrow.net/asterisk/perl/WWW-Curl-3.02.tar.gz

for i in *.tar.gz; do tar zxvf $i; done

for i in BIGNetworks-Asterisk Config-Tiny-2.10 Text-CSV-0.01 WWW-Curl-3.02; do
	echo $i
	cd $i
	perl Makefile.PL
	make install
	cd ..
done

popd

