#!/bin/csh
set verbose
echo "processing psp problem" $1

set AWKDIR = .

foreach j (arcs nodes mutual)
	/bin/rm -f $j

foreach j ($1.mut $1.sup $1.node $1.arc)
	if !(-f $j) then
		echo "file " $j " does not exist. Abort."
		exit(1)
	endif

nawk -f  $AWKDIR/awk.psp $1.mut $1.sup $1.node $1.arc

echo " "
echo "have created mnetgen files arcs nodes mutual"
exit(0)
