#!/bin/bash fw_installed ffead-cpp-apache-postgresql && return 0 fw_depends postgresql fw_depends ffead-cpp-unixodbc fw_depends ffead-cpp-mongocdriver fw_depends ffead-cpp-httpd cd ${IROOT}/ffead-cpp-src/ cp -f web/te-benchmark/sql-src/TeBkWorldsql.h web/te-benchmark/include/TeBkWorld.h cp -f web/te-benchmark/sql-src/TeBkWorldsql.cpp web/te-benchmark/src/TeBkWorld.cpp cp -f web/te-benchmark/config/sdormpostgresql.xml web/te-benchmark/config/sdorm.xml rm -rf ffead-cpp-2.0-bin make build-apps rm -rf ${IROOT}/ffead-cpp-2.0 cp -rf ffead-cpp-2.0-bin ${IROOT}/ffead-cpp-2.0 cd ${IROOT}/ffead-cpp-2.0 rm -rf web/default web/oauthApp web/flexApp web/markers chmod 755 *.sh resources/*.sh rtdcf/autotools/*.sh ./server.sh > ffead-cpp-apache-postgresql.log 2>&1 while ! echo exit | nc localhost 8080; do sleep 5; done rm -f serv.ctrl sleep 10 cd ${IROOT} echo -e "export PATH=${IROOT}/httpd/bin:\$PATH" > $IROOT/ffead-cpp-apache-postgresql.installed