#!/bin/bash
M_DIR=/usr/local/share/octave/site-m/octave-epstk
D_DIR=/usr/local/share/octave/site-m/octave-epstk/doc
C_DIR=/etc

rm -rf $D_DIR
rm -rf $M_DIR
mkdir -p $M_DIR
mkdir -p $D_DIR
cp m/* $M_DIR
cp -a doc/* $D_DIR
mkdir -p $C_DIR
mv $M_DIR/einit.m $C_DIR/epstk.conf
ln -s $C_DIR/epstk.conf $M_DIR/einit.m 
