#!/bin/bash
if [[ $1 == -* ]] ; then
	nom1=$1
else
	if [[ $1 == /* ]] ; then
		nom1=$1
	else
		nom1=$(pwd)/$1
	fi
fi

if [[ $2 == -* ]] ; then
	nom2=$2
else
	if [[ $2 == /* ]] ; then
		nom2=$2
	else
		nom2=$(pwd)/$2
	fi
fi

if [[ $3 == -* ]] ; then
	nom3=$3
else
	if [[ $3 == /* ]] ; then
		nom3=$3
	else
		nom3=$(pwd)/$3
	fi
fi

if [[ $4 == -* ]] ; then
	nom4=$4
else
	if [[ $4 == /* ]] ; then
		nom4=$4
	else
		nom4=$(pwd)/$4
	fi
fi

if [[ $5 == -* ]] ; then
	nom5=$5
else
	if [[ $5 == /* ]] ; then
		nom5=$5
	else
		nom5=$(pwd)/$5
	fi
fi

cd /usr/share/csuper/
./csuper-cli "$nom1" "$nom2" "$nom3" "$nom4" "$nom5"
