#!/bin/bash
echo=echo
exec=echo

echo=`which true`
exec=exec
jc=javac
option=

echo "*** Compilation complete de NAT ***"
if [ "$1" == "-v" ]; 
then
option="-verbose $2 $3 $4 $5 $6"
echo "mode verbeux"; 
else
option=$@;
fi
if [ "$#" == "0" ];
then
echo "Options: none";
else 
echo "Options: $option";
fi

echo "--- Package Writer2latex ---"
eval "$jc $option -encoding utf8 writer2latex/*.java writer2latex/xhtml/*.java"
echo "  "
echo "--- Packages de Nat ---"
eval "$jc -classpath ./:lib/jhall.jar:lib/saxon9.jar:lib/saxon9-dom.jar $option -encoding utf8 gestionnaires/*.java ui/*.java nat/transcodeur/*.java nat/presentateur/*.java nat/convertisseur/*.java nat/*.java"
