diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2000-12-19 00:29:20 +0100 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2000-12-19 00:29:20 +0100 |
commit | 59c4216475c45f9169c0ddcec00e870b7875d145 (patch) | |
tree | 20be702c165c8479b9e3cc0bf14accf9d792544d /Makefile.win | |
parent | Remove an IPv4 dependency in do_double_reverse() by calling (diff) | |
download | apache2-59c4216475c45f9169c0ddcec00e870b7875d145.tar.xz apache2-59c4216475c45f9169c0ddcec00e870b7875d145.zip |
The awk update for Win32 build/install. If awk is not installed, only
dbmmmanage.pl, httpd.default.conf and httpd.conf are left uncreated.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87407 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'Makefile.win')
-rw-r--r-- | Makefile.win | 59 |
1 files changed, 27 insertions, 32 deletions
diff --git a/Makefile.win b/Makefile.win index c1f8813cea..501b13f6b7 100644 --- a/Makefile.win +++ b/Makefile.win @@ -133,6 +133,7 @@ _install: -mkdir $(INSTDIR)\conf -mkdir $(INSTDIR)\logs -mkdir $(INSTDIR)\modules +# -mkdir $(INSTDIR)\proxy -mkdir $(INSTDIR)\htdocs -mkdir $(INSTDIR)\htdocs\manual copy Apache$(SHORT)\Apache.exe $(INSTDIR) @@ -160,39 +161,33 @@ _install: copy support\$(LONG)\htdigest.exe $(INSTDIR)\bin copy support\$(LONG)\logresolve.exe $(INSTDIR)\bin copy support\$(LONG)\rotatelogs.exe $(INSTDIR)\bin - if not exist $(INSTDIR)\conf\magic copy docs\conf\magic $(INSTDIR)\conf - copy docs\conf\magic $(INSTDIR)\conf\magic-default - if not exist $(INSTDIR)\conf\mime.types copy docs\conf\mime.types $(INSTDIR)\conf - copy docs\conf\mime.types $(INSTDIR)\conf\mime.types-default - cd docs\docroot - for %%a in (*.*) do if not exist $(INSTDIR)\htdocs\%%a copy %%a $(INSTDIR)\htdocs - cd ..\.. + xcopy docs\docroot $(INSTDIR)\htdocs /dy xcopy docs\manual $(INSTDIR)\htdocs\manual /sdy - 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.conf-default') - || die 'Create file $(INSTDIR)\conf\httpd.conf-default failed'; - while (<IN>) { - while (s|\@\@ServerRoot\@\@|$$serverroot|) {} - print OUT $_; + copy docs\conf\magic $(INSTDIR)\conf\magic.default + if not exist $(INSTDIR)\conf\magic \ + copy $(INSTDIR)\conf\magic.default $(INSTDIR)\conf\magic + copy docs\conf\mime.types $(INSTDIR)\conf\mime.types.default + if not exist $(INSTDIR)\conf\mime.types \ + copy $(INSTDIR)\conf\mime.types.default $(INSTDIR)\conf\mime.types + awk -f << docs\conf\httpd-win.conf $(INSTDIR)\conf\httpd.default.conf $(INSTDIR) + BEGIN { + srcfl = ARGV[1]; + dstfl = ARGV[2]; + serverroot = ARGV[3]; + gsub( /\\/, "/", serverroot ); + print "" > dstfl; + while ( ( getline < srcfl ) > 0 ) { + gsub( /@@ServerRoot@@/, serverroot ); + print $$0 >> dstfl; + } } - print 'Installed httpd.conf-default in $(INSTDIR)\conf' . "\n"; - close (OUT); - seek(IN, 0, SEEK_SET); - if (open(OUT, '< $(INSTDIR)\conf\httpd.conf')) { - print 'Existing $(INSTDIR)\conf\httpd.conf preserved' . "\n"; - close(OUT); close(IN); exit; - } - open(OUT, '> $(INSTDIR)\conf\httpd.conf') - || die 'Create file $(INSTDIR)\conf\httpd.conf failed'; - while (<IN>) { - while (s|\@\@ServerRoot\@\@|$$serverroot|) {} - print OUT $_; +<< + if not exist $(INSTDIR)\conf\httpd.conf \ + copy $(INSTDIR)\conf\httpd.default.conf $(INSTDIR)\conf\httpd.conf + awk -f << support\dbmmanage >$(INSTDIR)\bin\dbmmanage.pl + { if ( $$0 !~ /^#.*-lsdbm/) { + gsub( /AnyDBM_File::ISA = qw\(.*\)/, "AnyDBM_File::ISA = qw(SDBM_File)" ); + print $$0 + } } - print 'Installed httpd.conf in $(INSTDIR)\conf' . "\n"; - close(OUT); close(IN); << |