#!/bin/csh
#
# script to execute CAYLEY amd modify its output file for input to pqp
# you may need to change the path for CAYLEY in the third line
#
# EO'B
# August 1991
#
setenv CAYLIB_PATH $CAYLEY_DIR
cat CAYLEY_input CAYLEY_rep >! CAYLEY_INPUT
cayley < CAYLEY_INPUT >! CAYLEY_output
egrep -v "CAYLEY" CAYLEY_output >! C_T1
egrep -v "STORAGE" C_T1 >! C_T2
egrep -v "Library" C_T2 >! C_T3
egrep -v "\(" C_T3 >! C_T4
egrep -v "Network" C_T4 >! C_T5
egrep -v "\[" C_T5 >! C_T6
\mv C_T6 LINK_output
\rm -f C_T[1-5] CAYLEY_output CAYLEY_rep 
