summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorivan <ivan>2004-03-13 00:50:41 +0000
committerivan <ivan>2004-03-13 00:50:41 +0000
commit02aea7237fa255266f7b71eb0a9114c12aa3c034 (patch)
treeac561e4dcb502622b096de1f70c15506c6721f42 /Makefile
parent9342d61cac6cfebd11a7cdb5dc1359d663c5d1a3 (diff)
automatically set Mason comp_root in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3c46838..1b212b3 100644
--- a/Makefile
+++ b/Makefile
@@ -121,6 +121,10 @@ install-docs: docs
[ "${TEMPLATE}" = "asp" ] && chown -R freeside ${ASP_GLOBAL} || true
[ "${TEMPLATE}" = "asp" ] && cp htetc/global.asa ${ASP_GLOBAL} || true
[ "${TEMPLATE}" = "mason" ] && cp htetc/handler.pl ${MASON_HANDLER} || true
+ [ "${TEMPLATE}" = "mason" ] &&
+ perl -p -i -e "\
+ s/%%%FREESIDE_DOCUMENT_ROOT%%%/${FREESIDE_DOCUMENT_ROOT}/g;
+ " ${MASON_HANDLER}
[ "${TEMPLATE}" = "mason" -a ! -e ${MASONDATA} ] && mkdir ${MASONDATA} || true
[ "${TEMPLATE}" = "mason" ] && chown -R freeside ${MASONDATA} || true