Skip to content

Instantly share code, notes, and snippets.

@avar
Created June 23, 2010 13:04
Show Gist options
  • Select an option

  • Save avar/449891 to your computer and use it in GitHub Desktop.

Select an option

Save avar/449891 to your computer and use it in GitHub Desktop.
#!/bin/sh
cd ~/g/perl
git clean -dxf >/dev/null
rm -rf /tmp/perl
echo "Making perl"
./Configure -des -Dprefix=/tmp/perl -Dusedevel >/dev/null
make >/dev/null 2>&1
make install >/dev/null 2>&1
curl -L http://cpanmin.us | /tmp/perl/bin/perl5.13.* - --self-upgrade
/tmp/perl/bin/cpanm DBI
echo "Installing from CPAN"
cd /tmp
rm -rf DBD-SQLite*
wget http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/DBD-SQLite-1.30_03.tar.gz
tar xzf DBD-SQLite-1.30_03.tar.gz
cd DBD-SQLite-1.30_03
/tmp/perl/bin/perl5.13.* Makefile.PL >/dev/null
make >/dev/null
/tmp/perl/bin/perl5.13.* -Mblib t/13_create_collation.t
ret=$?
[ $ret -gt 127 ] && ret=127
exit $ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment