summaryrefslogtreecommitdiffstats
path: root/collab/egroupware/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'collab/egroupware/BUILD')
-rwxr-xr-xcollab/egroupware/BUILD16
1 files changed, 16 insertions, 0 deletions
diff --git a/collab/egroupware/BUILD b/collab/egroupware/BUILD
new file mode 100755
index 0000000000..040a968929
--- /dev/null
+++ b/collab/egroupware/BUILD
@@ -0,0 +1,16 @@
+if [ -e ${INSTALL_ROOT}/etc/httpd/httpd.conf ]; then
+ SPELL_ROOT=`grep '^DocumentRoot' ${INSTALL_ROOT}/etc/httpd/httpd.conf | cut -d\" -f2`
+elif [ -e ${INSTALL_ROOT}/etc/httpsd/httpd.conf ]; then
+ SPELL_ROOT=`grep '^DocumentRoot' ${INSTALL_ROOT}/etc/httpsd/httpd.conf | cut -d\" -f2`
+fi &&
+
+if [ "${SPELL_ROOT}" == "" ]; then
+ SPELL_ROOT=/usr/share
+fi &&
+
+if [ -f ${INSTALL_ROOT}${SPELL_ROOT}/${SPELL}/header.inc.php ]; then
+ cp -ruv ${INSTALL_ROOT}${SPELL_ROOT}/${SPELL}/header.inc.php /tmp
+ echo "${SPELL} previous header.inc.php was copied over to /tmp"
+fi &&
+
+true