Subject: [PATCH] win32: cf_email (was Re: Win32 embedding w/ 5.004)
On Fri, 30 May 1997 11:01:57 +0800, "Gary Ng (Systek)" wrote:
>Nick and Sarathy contribute much more that me. BTW, anyone
>notice that perl -V on win32 still show 'garyng' no matter who build it
>:-)
>Can that be removed ?
Actually perl -V doesn't show that for me, but perlbug does.
Here's a patch.
p5p-msgid:
199705301335.JAA05079@aatma.engin.umich.edu
# uncomment next line if you want debug version of perl (big,slow)
#CFG=Debug
+#
+# set this to your email address (perl will guess a value from
+# from your loginname and your hostname, which may not be right)
+#EMAIL =
+
##################### CHANGE THESE ONLY IF YOU MUST #####################
#
..\config.sh : config.w32 $(MINIPERL) config_sh.PL
$(MINIPERL) -I..\lib config_sh.PL "INST_DRV=$(INST_DRV)" "INST_TOP=$(INST_TOP)"\
- "cc=$(CC)" "ccflags=$(RUNTIME) -DWIN32" config.w32 > ..\config.sh
+ "cc=$(CC)" "ccflags=$(RUNTIME) -DWIN32" "cf_email=$(EMAIL)" config.w32 > ..\config.sh
$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
cd .. && miniperl configpm
#
## This file was hand coded and a lot of information is invalid
#
-## Configured by: garyng
+## Configured by: ~cf_email~
## Target system: WIN32
#
$opt{SUBVERSION} = $2 || '00';
}
+$opt{'cf_by'} = $ENV{USERNAME} unless $opt{'cf_by'};
+$opt{'cf_email'} = $opt{'cf_by'} . '@' . (gethostbyname('localhost'))[0]
+ unless $opt{'cf_email'};
+
while (<>)
{
s/~([\w_]+)~/$opt{$1}/g;