From: Steve Hay Date: Thu, 22 Jan 2004 17:08:29 +0000 (+0000) Subject: Re: [PATCH] Add "Camel" logo icon to perl.exe on Windows X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e84ac4e2e047fe0bbb7415313afdde3e76eafca7;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH] Add "Camel" logo icon to perl.exe on Windows Message-ID: <4010038D.4070104@uk.radan.com> p4raw-id: //depot/perl@22195 --- diff --git a/MANIFEST b/MANIFEST index f59a1f1..edcb2de 100644 --- a/MANIFEST +++ b/MANIFEST @@ -3044,7 +3044,9 @@ win32/include/netdb.h Win32 port win32/include/sys/socket.h Win32 port win32/Makefile Win32 makefile for NMAKE (Visual C++ build) win32/makefile.mk Win32 makefile for DMAKE (BC++, VC++ builds) +win32/makeico.pl script to create perlexe.ico image file win32/mdelete.bat multifile delete +win32/perlexe.rc associated perl binary with icon win32/perlglob.c Win32 port win32/perlhost.h Perl "host" implementation win32/perllib.c Win32 port diff --git a/README.win32 b/README.win32 index d0a878b..55b104b 100644 --- a/README.win32 +++ b/README.win32 @@ -746,6 +746,11 @@ Please send detailed descriptions of any problems and solutions that you may find to >, along with the output produced by C. +=head1 ACKNOWLEDGEMENTS + +The use of a camel with the topic of Perl is a trademark +of O'Reilly and Associates, Inc. Used with permission. + =head1 AUTHORS =over 4 diff --git a/win32/Makefile b/win32/Makefile index fd363fb..6ec377a 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -349,7 +349,8 @@ LIBC = msvcrt.lib LIBC = PerlCRT.lib !ENDIF -PERLEXE_RES = +PERLEXE_ICO = perlexe.ico +PERLEXE_RES = perlexe.res PERLDLL_RES = !IF "$(CFG)" == "Debug" @@ -896,6 +897,11 @@ $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) << $(XCOPY) $(PERLIMPLIB) $(COREDIR) +$(PERLEXE_ICO): $(MINIPERL) makeico.pl + $(MINIPERL) makeico.pl > $@ + +$(PERLEXE_RES): perlexe.rc $(PERLEXE_ICO) + $(MINIMOD) : $(MINIPERL) ..\minimod.pl cd .. miniperl minimod.pl > lib\ExtUtils\Miniperl.pm diff --git a/win32/makefile.mk b/win32/makefile.mk index 36d0485..cdb482f 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -450,7 +450,8 @@ LIBC = msvcrt.lib LIBC = PerlCRT.lib .ENDIF -PERLEXE_RES = +PERLEXE_ICO = perlexe.ico +PERLEXE_RES = perlexe.res PERLDLL_RES = .IF "$(CFG)" == "Debug" @@ -1020,6 +1021,11 @@ $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) .ENDIF $(XCOPY) $(PERLIMPLIB) $(COREDIR) +$(PERLEXE_ICO): $(MINIPERL) makeico.pl + $(MINIPERL) makeico.pl > $@ + +$(PERLEXE_RES): perlexe.rc $(PERLEXE_ICO) + $(MINIMOD) : $(MINIPERL) ..\minimod.pl cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm diff --git a/win32/makeico.pl b/win32/makeico.pl new file mode 100644 index 0000000..2585cf0 --- /dev/null +++ b/win32/makeico.pl @@ -0,0 +1,100 @@ +binmode STDOUT; +while () { + chomp; + print pack "H*", $_; +} + +# Create new hex data with +# perl -wle "binmode STDIN; $/ = \32; while (<>) {print unpack 'H*', $_}"