#!/bin/bash
LEDIT=/usr/bin/ledit
DATE=`date +"%y%m%d_%H%M%S"`
LOG_DIR=/tmp/log_smt-ai

if [ -f $LEDIT -a "`echo "y$*" | sed -e "s/^y.*-interactive.*$/n/"`" = "n" ]; then
	mkdir -p $LOG_DIR
	$LEDIT -h $LOG_DIR/smt-ai-$DATE.log $0.native $*
else
	$0.native $*
fi
