source: trunk/source/geometry/solids/test/SBT/script/runSBT @ 1350

Last change on this file since 1350 was 1350, checked in by garnier, 13 years ago

update to last version 4.9.4

File size: 538 bytes
Line 
1#!/bin/csh
2#
3# runSBT
4#
5# A script to run SBT with a batch script, and sum up errors in all
6# produced error log files
7#
8# Usage:
9#        runSBT <SBT-directory> <solid-name> [<executable>]
10#
11#
12if ($#argv < 2 | $#argv > 3) then
13  echo "Usage: runSBT <SBT-directory> <solid-name> [<executable>]"
14  exit 1
15else if ($#argv < 3) then
16  set EXECUTABLE=$G4WORKDIR/bin/$G4SYSTEM/SBT
17else
18  set EXECUTABLE=$3
19endif
20#
21rm -f SBT.$2.log
22$EXECUTABLE < $1/$2.geant4 >& SBT.$2.log
23awk -f $1/counterr.awk $2.*.log
24awk -f $1/countvoxelerr.awk $2v.*.log
Note: See TracBrowser for help on using the repository browser.