This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
backport of 9cf72a4efbbd7d24d3d9d7f5c9d5be6e4ef4297a
[metaconfig.git] / U / perl / Extras.U
CommitLineData
f126d342
JH
1?RCS: $Id: Extras.U,v$
2?RCS:
3?RCS: Copyright (c) 2001, Jarkko Hietaniemi
4?RCS:
5?RCS: You may distribute under the terms of either the GNU General Public
6?RCS: License or the Artistic License, as specified in the README file.
7?RCS:
8?MAKE:extras: Myread Oldconfig Setvar rm
9?MAKE: -pick add $@ %<
10?Y:TOP
11?S:extras:
12?S: This variable holds a list of extra modules to install.
13?S:.
d7a2632b 14: See if we want extra modules installed
f126d342 15echo " "
f126d342 16case "$extras" in
355857e1
JH
17'') dflt='n';;
18*) dflt='y';;
f126d342
JH
19esac
20cat <<EOM
21Perl can be built with extra modules or bundles of modules which
22will be fetched from the CPAN and installed alongside Perl.
23
24Notice that you will need access to the CPAN; either via the Internet,
25or a local copy, for example a CD-ROM or a local CPAN mirror. (You will
26be asked later to configure the CPAN.pm module which will in turn do
27the installation of the rest of the extra modules or bundles.)
28
29Notice also that if the modules require any external software such as
3e1124c5
JH
30libraries and headers (the libz library and the zlib.h header for the
31Compress::Zlib module, for example) you MUST have any such software
32already installed, this configuration process will NOT install such
33things for you.
f126d342
JH
34
35If this doesn't make any sense to you, just accept the default '$dflt'.
36EOM
3e1124c5 37rp='Install any extra modules (y or n)?'
f126d342
JH
38. ./myread
39case "$ans" in
40y|Y)
41 cat <<EOM
42
43Please list any extra modules or bundles to be installed from CPAN,
44with spaces between the names. The names can be in any format the
3e1124c5
JH
45'install' command of CPAN.pm will understand. (Answer 'none',
46without the quotes, to install no extra modules or bundles.)
f126d342
JH
47EOM
48 rp='Extras?'
49 dflt="$extras"
50 . ./myread
51 extras="$ans"
52esac
53case "$extras" in
54''|'none')
55 val=''
56 $rm -f ../extras.lst
57 ;;
58*) echo "(Saving the list of extras for later...)"
3e1124c5
JH
59 echo "$extras" > ../extras.lst
60 val="'$extras'"
f126d342
JH
61 ;;
62esac
63set extras
64eval $setvar
65echo " "
66