#!/bin/sh
# --- Copyright The University of Birmingam 2000: All rights reserved
# File:            $popneural/install_neural
# Purpose:         install Poplog-Neural
# Author:          Aaron Sloman
# Documentation:

echo "Assuming the neural directory is $poplocal/local/neural"


local=$poplocal/local
neural=$poplocal/local/neural


# Based on suggestions by Anthony Worrall

if [ ! -d $local/auto ]
then mkdir $local/auto
fi

if [ ! -d $local/lib ]
then mkdir $local/lib
fi

if [ ! -d $local/help ]
then mkdir $local/help
fi

if [ ! -d $local/teach ]
then mkdir $local/teach
fi

if [ ! -d $local/ref ]
then mkdir $local/ref
fi


echo "making new links"

cd $local/lib
ln -s ../neural/neural.p .

# The rest of this is optional

cd $local/teach
ln -s ../neural/teach/* .

cd $local/help
ln -s ../neural/help/neuralindex .

## cd $local/auto
## ln -s ../neural/auto/*.p .
##
## cd $local/lib
## ln -s ../neural/lib/*.p .

echo "done"
