1 # take a semicolon separated path list and turn it into a quoted
2 # list of paths that Text::Parsewords will grok
5 # remove leading/trailing semis/spaces
9 my @p = map { $_ = "\"$_\"" if /\s/ and !/^".*"$/; $_ } split /;/, $p;
14 while (@ARGV && $ARGV[0] =~ /^([\w_]+)=(.*)$/)
21 $opt{INST_VER} =~ s|~VERSION~|$]|g;
22 if ($] =~ /\.(\d\d\d)?(\d\d)?$/) { # should always be true
23 $opt{PERL_VERSION} = int($1 || 0);
24 $opt{PERL_SUBVERSION} = $2 || '00';
27 $opt{'cf_by'} = $ENV{USERNAME} unless $opt{'cf_by'};
28 $opt{'cf_email'} = $opt{'cf_by'} . '@' . (gethostbyname('localhost'))[0]
29 unless $opt{'cf_email'};
30 $opt{'usemymalloc'} = 'y' if $opt{'d_mymalloc'} eq 'define';
32 $opt{libpth} = mungepath($opt{libpth}) if exists $opt{libpth};
33 $opt{incpath} = mungepath($opt{incpath}) if exists $opt{incpath};
37 s/~([\w_]+)~/$opt{$1}/g;
38 if (/^([\w_]+)=(.*)$/) {
40 # this depends on cf_time being empty in the template (or we'll get a loop)
41 if ($k eq 'cf_time') {
42 $_ = "$k='" . localtime(time) . "'\n" if $v =~ /^\s*'\s*'/;
44 elsif (exists $opt{$k}) {
45 $_ = "$k='$opt{$k}'\n";