#!/bin/bash -x # # Copyright (C) 2008 GroundWork Open Source, Inc. ("GroundWork") # info@groundworkopensource.com # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License # as published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # # Build properties for Groundwork Foundation # PATH=$PATH:$HOME/bin export GW_HOME=/usr/local/groundwork export ANT_HOME=$(which ant|sed 's/\/bin\/ant//') export MAVEN_HOME=$(which maven|sed 's/\/bin\/maven//') export LDFLAGS=-L$GW_HOME/$libdir export LD_RUN_PATH=$GW_HOME/$libdir:$LD_RUN_PATH export LD_LIBRARY_PATH=$GW_HOME/$libdir:$LD_LIBRARY_PATH export CPPFLAGS=-I$GW_HOME/include export PATH=$JAVA_HOME/bin:$GW_HOME/bin:$PATH:$MAVEN_HOME/bin:$ANT_HOME/bin HOME=/home/nagios BASE=$HOME/groundwork-monitor BUILD_DIR=$BASE/build # Clean up previous builds rm -rf /groundwork-foundation* rm -rf /usr/src/package/BUILD/groundwork-foundation* rm -rf /usr/src/package/SOURCE/groundwork-foundation* rm -rf /usr/local/groundwork/foundation rm -rf /usr/local/groundwork/config cd $HOME rm -rf groundwork-monitor # Check out from subversion svn co -N http://archive.groundworkopensource.com/groundwork-opensource/trunk groundwork-monitor svn co http://archive.groundworkopensource.com/groundwork-opensource/trunk/build groundwork-monitor/build svn co http://archive.groundworkopensource.com/groundwork-opensource/trunk/foundation groundwork-monitor/foundation # Start master build script cd $BUILD_DIR . build-foundation.sh echo "groundwork-foundation build is done."