You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
|
|
|
|
while [ "$1" ]; do
|
|
|
|
case "$1" in
|
|
|
|
"--rbuild"|"-rb")
|
|
|
|
make clean #on clean pour pouvoir tout rebuild aprés
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
"--test"|"-t")
|
|
|
|
APPARGS="-t"
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "argument $1 inconnu." &>2
|
|
|
|
exit 1
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
#si le build est passé sans soucis
|
|
|
|
if make; then
|
|
|
|
#on prépare les fichiers de stockage si ils existent pas
|
|
|
|
if [ ! -d "stockage" ]
|
|
|
|
then
|
|
|
|
echo "le dossier 'stockage' n'existe pas, un jeux de données préfait à été collé à l'interrieur afin de faciliter l'utilisation da l'application"
|
|
|
|
mkdir stockage
|
|
|
|
cp jdd/* stockage
|
|
|
|
echo
|
|
|
|
fi
|
|
|
|
|
|
|
|
#on lance
|
|
|
|
./app $APPARGS
|
|
|
|
fi
|