Changeset 18677 for gsdl/trunk
- Timestamp:
- 2009-03-13T15:06:46+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/Makefile.in
r18560 r18677 71 71 72 72 test-gsdlhome: 73 @ if test -z "$ (GSDLHOME)" ; then \73 @ if test -z "${GSDLHOME}" ; then \ 74 74 echo "" ; \ 75 75 echo "Environment variable GSDLHOME not set." ; \ … … 86 86 configure-cgi: test-gsdlhome 87 87 @ echo "Configuring cgi-bin/gsdlsite.cfg" ; 88 sed "s@\*\*GSDLHOME\*\*@$(GSDLHOME)@g" cgi-bin/gsdlsite.cfg.in > cgi-bin/gsdlsite.cfg ;88 @ sed "s@\*\*GSDLHOME\*\*@${GSDLHOME}@g" cgi-bin/gsdlsite.cfg.in > cgi-bin/gsdlsite.cfg ; 89 89 90 90 … … 107 107 make web-stop-tested ; \ 108 108 echo "Setting config file to use port $$port"; \ 109 cat "${GSDLHOME}/apache-httpd/conf/httpd.conf" \ 110 | sed "s/^Listen [0-9]\+/Listen $$port/" \ 111 > "${GSDLHOME}/apache-httpd/conf/httpd.conf.new" ; \ 109 cat "${GSDLHOME}/apache-httpd/conf/httpd.conf.in" \ 110 | sed "s@\*\*PORT\*\*@$$port@g" \ 111 | sed "s@\*\*GSDLHOME\*\*@${GSDLHOME}@g" \ 112 > "${GSDLHOME}/apache-httpd/conf/httpd.conf" ; \ 112 113 echo "Type 'make web-start' to start the web server running on port $$port" ; \ 113 114 fi ; \ … … 117 118 MONITOR_FAILED="MAKE FAILED" 118 119 MONITOR_FINISHED="MAKE DONE" 120 121 configure-apache: test-gsdlhome 122 @ echo "Configuring the apache webserver..." ; 123 @ ( port=`egrep "^apache.port" lib/java/build.properties | awk -F= '{print $$2}'` ; \ 124 echo $$port | make configure-port ; ) 125 @ echo $(MONITOR_SUCCESS) 126 @ echo $(MONITOR_FINISHED) 127 128 129 configure-web: configure-cgi configure-apache 119 130 120 131 web-status: test-gsdlhome … … 141 152 @# been done. This avoids a unnecessary repetition of printing 142 153 @# out the values of GSDLHOME and GSDLOS 143 ${GSDLHOME}/apache-httpd/${GSDLOS}/bin/apachectl stop 154 @ if test -e "${GSDLHOME}/apache-httpd/conf/httpd.conf" ; then \ 155 ${GSDLHOME}/apache-httpd/${GSDLOS}/bin/apachectl stop ; \ 156 fi 144 157 @ echo $(MONITOR_SUCCESS) 145 158 @ echo $(MONITOR_FINISHED)
Note:
See TracChangeset
for help on using the changeset viewer.