#!/bin/sh # Rebuilds and tests gtr in the local directory. # For example to create an op[timized build after SRT_D0 # has been checked out and modified appropriately. REL=`cat .base_release` echo Building in $REL echo . /usr/local/etc/setups.sh setup D0RunII $REL d0setwa NAMES=" static_la ref_count ptr objstream trfutil trfobj trfcut trfbase trflayer trffit trffind trfcyl trfdca trfzp trfxyp trfcylplane chunkptr d0cluster d0cluster_evt gtrbase gtr_evt tim tim_interceptor tim_interface sftalign sftclus sftdigi sftdigi_evt sftdigi_reco cft_util cft_geometry cft_cyl2D cft_evt cft_evt2D cft_obs cft_trf cft_trf2D cft_reco cft_reco2D cft_trfclus cft_trfcl_filter cft_trfzcyl cft_tuple trf_smtbase trf_smtdetector trf_smtfind trf_smtfit trf_smtlayer trf_smttuple smt_d0hit smt_detector smt_hitconverter smt_path gtrmat gtrselect gtrmix gtrprop gtrfit gtr_find gtr_htf gtr_mcsim gtr_mcfind gtr_mcfill gtr_dump gtr_tuple gtr_disp gtr_sys " # Check out all the relevant packages. for NAME in $NAMES; do if [ ! -d $NAME ]; then echo $NAME addpkg $NAME fi done # Touch the files so they won't be deleted in automatic cleanup. # New cleaning procedure should remove need for this. #find . -type f -exec touch {} \; # Build. gmake all # Run tests. #gmake test