summaryrefslogtreecommitdiff
path: root/Makefile.win
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2001-07-26 19:26:23 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2001-07-26 19:26:23 +0000
commitfe867c073ec47f009f952dfdc9ea779048e0df1f (patch)
tree3fdc92b308b44cca22bc3881ff613fbb86dd1bc1 /Makefile.win
parent7b83e43517edc28477d51c73687b90da85a01f61 (diff)
downloadhttpd-fe867c073ec47f009f952dfdc9ea779048e0df1f.tar.gz
Add some logic that gets us over the hump of a missing awk (copying the
files with no editing whatsoever.) Also sets up the shebang for printenv.pl, and drops in the test-cgi.bat script. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89742 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'Makefile.win')
-rw-r--r--Makefile.win18
1 files changed, 17 insertions, 1 deletions
diff --git a/Makefile.win b/Makefile.win
index 63f1c67487..f7773fbedd 100644
--- a/Makefile.win
+++ b/Makefile.win
@@ -181,6 +181,21 @@ _install:
copy support\$(LONG)\logresolve.exe "$(INSTDIR)\bin"
copy support\$(LONG)\rotatelogs.exe "$(INSTDIR)\bin"
copy docs\cgi-examples\printenv "$(INSTDIR)\cgi-bin\printenv.pl"
+ -awk -f <<script.awk "docs\cgi-examples\printenv" "$(INSTDIR)\cgi-bin\printenv.pl"
+ BEGIN {
+ srcfl = ARGV[1];
+ dstfl = ARGV[2];
+ if ( "perl -e \"print $$^X;\"" | getline perlroot ) {
+ gsub( /\\/, "/", perlroot );
+ print "#!" perlroot > dstfl;
+ getline < srcfl;
+ }
+ while ( ( getline < srcfl ) > 0 ) {
+ print $$0 > dstfl;
+ }
+ }
+<<
+ copy docs\cgi-examples\test-cgi.bat "$(INSTDIR)\cgi-bin"
xcopy docs\docroot "$(INSTDIR)\htdocs" /d < <<
A
<<
@@ -220,7 +235,8 @@ A
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 <<script.awk "docs\conf\httpd-win.conf" "$(INSTDIR)\conf\httpd.default.conf" "$(INSTDIR)"
+ copy docs\conf\httpd-win.conf "$(INSTDIR)\conf\httpd.default.conf"
+ -awk -f <<script.awk "docs\conf\httpd-win.conf" "$(INSTDIR)\conf\httpd.default.conf" "$(INSTDIR)"
BEGIN {
srcfl = ARGV[1];
dstfl = ARGV[2];