fix up includes with Apache::ASP
authorivan <ivan>
Fri, 23 Apr 2004 12:50:34 +0000 (12:50 +0000)
committerivan <ivan>
Fri, 23 Apr 2004 12:50:34 +0000 (12:50 +0000)
Makefile
htetc/global.asa

index bf73202..6d3d803 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -129,6 +129,10 @@ install-docs: docs
        [ "${TEMPLATE}" = "asp" -a ! -e ${ASP_GLOBAL} ] && mkdir ${ASP_GLOBAL} || true
        [ "${TEMPLATE}" = "asp" ] && chown -R freeside ${ASP_GLOBAL} || true
        [ "${TEMPLATE}" = "asp" ] && cp htetc/global.asa ${ASP_GLOBAL} || true
        [ "${TEMPLATE}" = "asp" -a ! -e ${ASP_GLOBAL} ] && mkdir ${ASP_GLOBAL} || true
        [ "${TEMPLATE}" = "asp" ] && chown -R freeside ${ASP_GLOBAL} || true
        [ "${TEMPLATE}" = "asp" ] && cp htetc/global.asa ${ASP_GLOBAL} || true
+       [ "${TEMPLATE}" = "asp" ] && \
+         perl -p -i -e "\
+           s'%%%FREESIDE_DOCUMENT_ROOT%%%'${FREESIDE_DOCUMENT_ROOT}'g; \
+         " ${ASP_GLOBAL}/global.asa || true
        [ "${TEMPLATE}" = "mason" ] && cp htetc/handler.pl ${MASON_HANDLER} || true
        [ "${TEMPLATE}" = "mason" ] && \
          perl -p -i -e "\
        [ "${TEMPLATE}" = "mason" ] && cp htetc/handler.pl ${MASON_HANDLER} || true
        [ "${TEMPLATE}" = "mason" ] && \
          perl -p -i -e "\
index dace295..4358e87 100644 (file)
@@ -197,9 +197,8 @@ sub sprintAutoProfile {
 }
 
 sub include {
 }
 
 sub include {
-  ( my $file = shift ) =~ s(^/)();
-  $Response->Include($file, @_);
-  '';
+  ( my $file = shift ) =~ s(^/)(%%%FREESIDE_DOCUMENT_ROOT%%%/);
+  ${$Response->TrapInclude($file, @_)};
 }
 
 if ( defined(@DBIx::Profile::ISA) ) {
 }
 
 if ( defined(@DBIx::Profile::ISA) ) {