#!/bin/sh

mkdir -p $HOME

# workaround for #752930
# 0) create ~/.cpan/CPAN/MyConfig.pm ourselves before EU::AutoInstall
#    tries to do it and fails horribly in a loop in the install_help
#    question
# 1) "preseed" exactly this install_help question, otherwise the default
#    'local::lib' is chosen and CPAN.pm goes out hunting
# 2) "preseed" urllist as well, otherwise CPAN.pm from 5.18 asks for it
#     and tries to download a mirror list. in 5.20 it contains
#     www.cpan.org already.
perl -MCPAN -e '$CPAN::Config = {"install_help" => q[manual], "urllist" => [q[http://www.cpan.org/]]}; CPAN::Shell->mkmyconfig' </dev/null

