#!/bin/bash -x # description: monitor-core build script # # Copyright 2007 GroundWork Open Source, Inc. (“GroundWork”) # All rights reserved. This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License version 2 # 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 # Street, Fifth Floor, Boston, MA 02110-1301, USA. # BUILD_DIR=$PWD/../monitor-core LOG_DIR=$PWD/log prefix=/usr/local/groundwork #Architecture dependent lib path arch=$(arch) if [ "$arch" == "x86_64" ] ; then libdir=lib64 else libdir=lib fi #Make sure path and the compile flags are correct /sbin/ldconfig export LD_RUN_PATH=$prefix/$libdir:$LD_RUN_PATH export LD_LIBRARY_PATH=$prefix/$libdir:$LD_LIBRARY_PATH export LDFLAGS=-L$prefix/$libdir echo LD_RUN_PATH $LD_RUN_PATH echo LD_LIB_PATH $LD_LIBRARY_PATH echo LDFLAGS $LDFLAGS # Clean up install directory #rm -rf $prefix gd2_goals=($(/bin/fgrep "attainGoal" ../monitor-core/gd2/maven.xml|awk '{print $2}'|sed -e "s/name=//g" -e "s/'//g")) perl_goals=($(/bin/fgrep "attainGoal" ../monitor-core/perl/maven.xml|awk '{print $2}'|sed -e "s/name=//g" -e "s/'//g" -e "s/\/>//g" -e "s/\"perlmodule\"//g" -e "s/