From: <ma...@us...> - 2006-10-26 22:01:47
|
Revision: 1575 http://svn.sourceforge.net/osdldbt/?rev=1575&view=rev Author: markwkm Date: 2006-10-26 15:01:46 -0700 (Thu, 26 Oct 2006) Log Message: ----------- Quiet all the build messages to reduce output. Modified Paths: -------------- trunk/dbt2/scripts/pgsql/install-source Modified: trunk/dbt2/scripts/pgsql/install-source =================================================================== --- trunk/dbt2/scripts/pgsql/install-source 2006-10-26 20:12:53 UTC (rev 1574) +++ trunk/dbt2/scripts/pgsql/install-source 2006-10-26 22:01:46 UTC (rev 1575) @@ -10,7 +10,7 @@ # if [ $# -lt 3 ]; then - echo "usage: install-source <DIR or DATE> <TMP DIR> <INSTALL DIR> [J FLAG]" + echo "usage: install-source <DIR or DATE> <TMP DIR> <INSTALL DIR> <J FLAG> <FORCE>" exit 1 fi @@ -18,21 +18,39 @@ WORKING_DIR=${2} INSTALL_DIR=${3} J_FLAG=${4} +FORCE=${5} MODULE="pgsql" +HOST=`hostname` + +echo "attempting to build postgresql: ${HOST}" + +if [ -d "${WORKING_DIR}/${MODULE}" ]; then + if [ ${FORCE} -eq 1 ]; then + killall -9 postmaster + rm -rf ${WORKING_DIR}/${MODULE} || exit 1 + rm -r /tmp/.s.PGSQL.5432 + rm -r /tmp/.s.PGSQL.5432.lock + else + echo "'${WORKING_DIR}/${MODULE}' exists, cannot continue" + exit 1 + fi +fi + if [ -d "${DATE}" ]; then cd ${DATE} || exit 1 else cd ${WORKING_DIR} || exit 1 cvs -z3 -d :pserver:an...@an...:/projects/cvsroot \ - export -D ${DATE} ${MODULE} || exit 1 + export -D ${DATE} ${MODULE} > /dev/null 2>&1 || exit 1 cd ${MODULE} || exit 1 fi # Precautionary step, we don't need to see if 'make distclean' fails. make distclean > /dev/null 2>&1 ./configure --enable-debug --enable-thread-safety \ - --prefix=${INSTALL_DIR} || exit 1 -make ${J_FLAG} || exit 1 -make install || exit 1 + --prefix=${INSTALL_DIR} > /dev/null 2>&1 || exit 1 +make ${J_FLAG} > /dev/null 2>&1 || exit 1 +make install > /dev/null 2>&1 || exit 1 +echo "postgresql installed successfully: ${HOST}" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |