2 while (@ARGV && $ARGV[0] =~ /^([\w_]+)=(.*)$/)
9 $opt{INST_VER} =~ s|~VERSION~|$]|g;
10 if ($] =~ /\.(\d\d\d)?(\d\d)?$/) { # should always be true
11 $opt{PATCHLEVEL} = int($1 || 0);
12 $opt{SUBVERSION} = $2 || '00';
15 $opt{'cf_by'} = $ENV{USERNAME} unless $opt{'cf_by'};
16 $opt{'cf_email'} = $opt{'cf_by'} . '@' . (gethostbyname('localhost'))[0]
17 unless $opt{'cf_email'};
18 $opt{'usemymalloc'} = 'y' if $opt{'d_mymalloc'} eq 'define';
22 s/~([\w_]+)~/$opt{$1}/g;
23 if (/^([\w_]+)=(.*)$/) {
24 # this depends on cf_time being empty in the template (or we'll get a loop)
25 if ($1 eq 'cf_time') {
26 $_ = "$1='" . localtime(time) . "'\n" if $2 =~ /^\s*'\s*'/;
28 elsif (exists $opt{$1}) {
29 $_ = "$1='$opt{$1}'\n";