From: Gurusamy Sarathy Date: Tue, 27 May 1997 14:28:08 +0000 (+1200) Subject: win32: Configure cf_email X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d484a8290f98952e0e3a67e0aae9aa08c631f5c2;p=p5sagit%2Fp5-mst-13.2.git win32: Configure cf_email 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 --- diff --git a/win32/Makefile b/win32/Makefile index 8c99ef7..9712c57 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -24,6 +24,11 @@ INST_TOP=$(INST_DRV)\perl # 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 ##################### # @@ -264,7 +269,7 @@ perlglob.obj : perlglob.c ..\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 diff --git a/win32/config.w32 b/win32/config.w32 index e977b17..b40efee 100644 --- a/win32/config.w32 +++ b/win32/config.w32 @@ -1,7 +1,7 @@ # ## This file was hand coded and a lot of information is invalid # -## Configured by: garyng +## Configured by: ~cf_email~ ## Target system: WIN32 # diff --git a/win32/config_sh.PL b/win32/config_sh.PL index 020485d..0769ef3 100644 --- a/win32/config_sh.PL +++ b/win32/config_sh.PL @@ -10,6 +10,10 @@ if ($] =~ /\.(\d\d\d)?(\d\d)?$/) { # should always be true $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;