#!/bin/sh
export THIS_DIR="$(cd "$( dirname "$0" )" && pwd )"

/bin/ln -s -f $THIS_DIR/../../openlib/pest/   $THIS_DIR/../pest
/bin/ln -s -f $THIS_DIR/../../openlib/uuid/   $THIS_DIR/../uuid
/bin/ln -s -f $THIS_DIR/../../openlib/adodb5/ $THIS_DIR/../adodb5

mkdir -p $THIS_DIR/../mhlib
/bin/ln -s -f $THIS_DIR/../daemonize.php       $THIS_DIR/../mhlib/daemonize.php
/bin/ln -s -f $THIS_DIR/../debug_log.class.php $THIS_DIR/../mhlib/debug_log.class.php
/bin/ln -s -f $THIS_DIR/../log_errors.inc.php  $THIS_DIR/../mhlib/log_errors.inc.php
/bin/ln -s -f $THIS_DIR/../logfile.class.php   $THIS_DIR/../mhlib/logfile.class.php
/bin/ln -s -f $THIS_DIR/../misc.php            $THIS_DIR/../mhlib/misc.php
/bin/ln -s -f $THIS_DIR/../object_misc.php     $THIS_DIR/../mhlib/object_misc.php
/bin/ln -s -f $THIS_DIR/../send_json.class.php $THIS_DIR/../mhlib/send_json.class.php