From c8e999d05392005d5f2580409f1eacd564718c7a Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Thu, 13 Dec 2012 10:35:57 +0000 Subject: [PATCH] Added copying of .swf CGI to Windows install target. Moved fixing of shebang to separate target so that it is no longer executed by default and CGIs remain inactive. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1421203 13f79535-47bb-0310-9956-ffa450edef68 --- Makefile.win | 57 +++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 43 insertions(+), 14 deletions(-) diff --git a/Makefile.win b/Makefile.win index b81517431a5..81ba86dd8fc 100644 --- a/Makefile.win +++ b/Makefile.win @@ -1044,21 +1044,9 @@ BEGIN { INSTALL_DIR="$(INSTDIR)\bin\iconv" cd ..\.. !ENDIF - copy docs\cgi-examples\printenv.vbs "$(INSTDIR)\cgi-bin\printenv.vbs" <.y copy docs\cgi-examples\printenv "$(INSTDIR)\cgi-bin\printenv.pl" <.y - -awk -f < "$(INSTDIR)\cgi-bin\printenv.pl" - BEGIN { - if ( "perl -e \"print $$^X;\"" | getline perlroot ) { - gsub( /\\/, "/", perlroot ); - print "#!" perlroot; - } - } - { - if ( $$0 !~ /^#!/ ) { - print $$0; - } - } -<< + copy docs\cgi-examples\printenv.vbs "$(INSTDIR)\cgi-bin\printenv.vbs" <.y + copy docs\cgi-examples\printenv.wsf "$(INSTDIR)\cgi-bin\printenv.wsf" <.y xcopy docs\error "$(INSTDIR)\error" /s /d < .a xcopy docs\docroot "$(INSTDIR)\htdocs" /d < .a xcopy docs\icons "$(INSTDIR)\icons" /s /d < .a @@ -1131,3 +1119,44 @@ BEGIN { << del .y del .a + +_fixshebang: _install + -awk -f < "$(INSTDIR)\cgi-bin\printenv.pl" + BEGIN { + if ( "perl -e \"print $$^X;\"" | getline perlroot ) { + gsub( /\\/, "/", perlroot ); + print "#!" perlroot; + } + } + { + if ( $$0 !~ /^#!/ ) { + print $$0; + } + } +<< + -cscript -nologo <