#!/bin/csh -f
#
#       For use with the Chaos Router Simulator Package
#
#	unwrap the simulator directory (chaosSim) and do some setup
#
#

if ($#argv == 0) then
  set directory = chaosSim
else
  set directory = $argv[1]
endif
set tarfile = $directory.tar

echo "Extracting '$directory'..."
zcat $tarfile | tar xf - $directory

echo
cd $directory
echo "Compiling configuration file..."
make configSim
echo
echo "Checking for machine dependent dependencies..."
make depend

echo
cd man
echo "Configuring man pages..."
./makeman 1 chaos > chaos.1.0
./makeman 2 chaos > chaos.2.0
echo

