| 143 | if test ! -e "gs2-server.app/Contents/document.wflow" ; then |
| 144 | sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "gs2-server.app/Contents/document.wflow.in" > "gs2-server.app/Contents/document.wflow" |
| 145 | fi |
| 146 | if test ! -e "gli.app/Contents/document.wflow" ; then |
| 147 | sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "gli.app/Contents/document.wflow.in" > "gli.app/Contents/document.wflow" |
| 148 | fi |
| 149 | if test ! -e "client-gli.app/Contents/document.wflow" ; then |
| 150 | sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "client-gli.app/Contents/document.wflow.in" > "client-gli.app/Contents/document.wflow" |
| 151 | fi |
| 152 | if test ! -e "gems.app/Contents/document.wflow" ; then |
| 153 | sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "gems.app/Contents/document.wflow.in" > "gems.app/Contents/document.wflow" |
| 154 | fi |
| 155 | |
151 | | /bin/mv "$GSDLHOME/$cgibin/gsdlsite.cfg" "$GSDLHOME/$cgibin/gsdlsite.cfg.bak" ; |
152 | | echo "**** Regenerating $GSDLHOME/$cgibin/gsdlsite.cfg" ; |
153 | | echo "**** Previous version of file now $GSDLHOME/$cgibin/gsdlsite.cfg.bak" ; |
154 | | fi |
155 | | |
156 | | log4jprop=$GSDLHOME/lib/java/log4j.properties |
157 | | sed "s^@gsdl2home@^$GSDLHOME^g" "$log4jprop.in" > "$log4jprop" |
158 | | |
159 | | sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "gs2-server.app/Contents/document.wflow.in" > "gs2-server.app/Contents/document.wflow" |
160 | | sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "gli.app/Contents/document.wflow.in" > "gli.app/Contents/document.wflow" |
161 | | sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "client-gli.app/Contents/document.wflow.in" > "client-gli.app/Contents/document.wflow" |
162 | | sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "gems.app/Contents/document.wflow.in" > "gems.app/Contents/document.wflow" |
| 164 | /bin/mv "$GSDLHOME/$cgibin/gsdlsite.cfg" "$GSDLHOME/$cgibin/gsdlsite.cfg.bak" ; |
| 165 | echo "**** Regenerating $GSDLHOME/$cgibin/gsdlsite.cfg" ; |
| 166 | echo "**** Previous version of file now $GSDLHOME/$cgibin/gsdlsite.cfg.bak" ; |
| 167 | fi |
| 168 | |
| 169 | log4jprop=$GSDLHOME/lib/java/log4j.properties |
| 170 | sed "s^@gsdl2home@^$GSDLHOME^g" "$log4jprop.in" > "$log4jprop" |
| 171 | |
| 172 | rm -f "gs2-server.app/Contents/document.wflow" |
| 173 | rm -f "gli.app/Contents/document.wflow" |
| 174 | rm -f "client-gli.app/Contents/document.wflow" |
| 175 | rm -f "gems.app/Contents/document.wflow" |