#!/bin/sh
#
# A script to run a full GIN software build
# Must stand on the root directory above GTL, PICI, RUS and friends
#
LD_LIBRARY_PATH=/usr/local/gwa/lib:/usr/local/lib
export LD_LIBRARY_PATH
PATH=/opt/kde/bin:/usr/local/gwa/bin:/usr/local/bin:/public/home/cmadm/bin:/usr/dt/bin:/usr/ccs/bin:/usr/bin:/bin:/sbin:/usr/sbin:/usr/openwin/bin:/public/scripts:/usr/local/apache/include
export PATH
XERCESCROOT=/usr/local/xerces-c-src_1_2_0
export XERCESCROOT
PKGS='GTL Z2H'
## PKGS='GTL GRB RUS PICI ZAX Z2H DPT SDA NPDD LSM SDU UWS GNS' ## CNM'
## PKGS='GTL GRB PDC RUS PICI ZAX Z2H DPT SDA PDD-CORE PDD-MISC PDD-RUS PDD-PICI PDD-ZAX PDD-SDA SDU UWS GNS' ## CNM'
chmod +x GTL/initlog
# Loop on packages and compile each
for pckg in $PKGS; do
echo "Building $pckg ........................................"
cd $pckg
/usr/local/bin/make clean
/usr/local/bin/make
cd ..
echo "End building $pckg ........................................"
done