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
|
|
|
|
;;
|
|
|
|
"-o")
|
|
|
|
APPARGS="$2"
|
|
|
|
shift 2
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
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
|
|
|
|
mkdir stockage
|
|
|
|
fi
|
|
|
|
cp -rn jdd/* stockage/
|
|
|
|
|
|
|
|
#on lance
|
|
|
|
./app $APPARGS
|
|
|
|
fi
|