httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@locus.apache.org
Subject cvs commit: httpd-2.0 Makefile.win
Date Tue, 12 Dec 2000 20:34:25 GMT
wrowe       00/12/12 12:34:25

  Modified:    .        Makefile.win
  Log:
    One, it's very hard to type perl without $'s (stolen by the .mak parser)
    Two, it's official ... we don't have anything useful on Win32 to help us
    with rewriting (no sed, no nothing, by default) so we will require perl.
    Sorry to anyone that causes trouble for, but it's fairly unavoidable
    unless we want sed instead.
  
  Revision  Changes    Path
  1.36      +28 -0     httpd-2.0/Makefile.win
  
  Index: Makefile.win
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/Makefile.win,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- Makefile.win	2000/12/12 17:41:44	1.35
  +++ Makefile.win	2000/12/12 20:34:23	1.36
  @@ -158,3 +158,31 @@
   	copy support\$(LONG)\htdigest.exe $(INSTDIR)\bin
   	copy support\$(LONG)\logresolve.exe $(INSTDIR)\bin
   	copy support\$(LONG)\rotatelogs.exe $(INSTDIR)\bin
  +	perl <<
  +
  +    my $$serverroot = '$(INSTDIR)';
  +    $$serverroot =~ s|\\|\/|;
  +    open(IN, '< docs\conf\httpd-win.conf') 
  +        || die 'Source httpd-win.conf not found in docs\conf';
  +    open(OUT, '> $(INSTDIR)\conf\httpd-default.conf') 
  +        || die 'Create file $(INSTDIR)\docs\conf\httpd-default.conf failed';
  +    while (<IN>) {
  +        while (s|\@\@ServerRoot\@\@|$$serverroot|) {}
  +	print OUT $_;
  +    }
  +    print 'Installed httpd-default.conf in $(INSTDIR)\conf' . "\n";
  +    close (OUT); 
  +    seek(IN, 0, SEEK_SET);
  +    if (open(OUT, '< $(INSTDIR)\conf\httpd.conf')) { 
  +        print 'Existing $(INSTDIR)\docs\conf\httpd.conf preserved' . "\n";
  +        close(OUT); close(IN); exit;
  +    }
  +    open(OUT, '> $(INSTDIR)\conf\httpd.conf') 
  +        || die 'Create file $(INSTDIR)\docs\conf\httpd.conf failed';
  +    while (<IN>) {
  +        while (s|\@\@ServerRoot\@\@|$$serverroot|) {}
  +	print OUT $_;
  +    }
  +    print 'Installed httpd.conf in $(INSTDIR)\conf' . "\n";
  +    close(OUT); close(IN);
  +<<
  
  
  

Mime
View raw message