#!/bin/sh # This script makes the standard ProductionExe # usage: # bins |& tee bins.log # or in a test release, just # bins echo " " release=${1} if [ -n "${release}" ] then echo " OK - Building bins for cdfsoft2 ${release} " . ${SRT_DIST}/../cdf2.shrc echo " OK - setting up cdfsoft2 ${release}" setup cdfsoft2 ${release} cd ${CDFSOFT2_DIR} else echo " OK - Building bins in test release `pwd` " if [ -d "bin" -a \ -d "doc" -a \ -d "include" -a \ -d "lib" -a \ -d "man" -a \ -d "results" -a \ -d "tmp" -a \ -d "ups" ] then echo " OK, this does seem to be a test release" else echo " OOPS, a directory is missing in test release `pwd`" echo " Should find bin, doc, include, lib, man, results, tmp, ups " ls -alF | grep [d,l]rw exit 1 fi fi export TRACKING_USE_HEPTUPLE TRACKING_USE_HEPTUPLE=YES makebin() { action=${1} package=`echo $action | cut -f1 -d.` echo " " if [ -d "${package}" ] then echo " OK - ${action} " date time gmake ${action} else echo " OOPS - Package ${package} not in this release, skipping ${action}" fi } makebin Production.bin ls -alF bin/${SRT_SUBDIR}/ date