#!/bin/csh -f
#   make config file  for Tibet array so that it can be
#   used as a config file for Epics
#
if ( $#argv != 1) then
	echo "makeconfig array"
        echo "  where array is the file containing the basic array information"
	exit
endif

awk -f makesubd1.awk $1 > config1

awk -f makesubd2.awk config1 > config2

awk -f makesubd3.awk config2 > config3

cat configunit config1 config2 config3 > config
awk -f makedet.awk  config3 >> config 



