From ed721e8b61466c3369917d1c1e2d640644017817 Mon Sep 17 00:00:00 2001 From: TrisTOON <36267812+TrisTOON@users.noreply.github.com> Date: Sat, 8 Feb 2020 17:59:24 +0100 Subject: [PATCH] Ajout du fichier `make.bat` manquant --- .gitignore | 9 +++++---- authors.md | 4 ++-- make.bat | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 make.bat diff --git a/.gitignore b/.gitignore index 8766a74..5d6ca87 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ /bin /out +/tmp /zip -/.idea -*.iml -*.log -*.zip +/*.idea +/*.iml +.DS_Store +Thumbs.db diff --git a/authors.md b/authors.md index 97aaed4..f116345 100644 --- a/authors.md +++ b/authors.md @@ -3,9 +3,9 @@ - Amos George (@AmosGeorge) - Clément Crouzet (@CrouzetC) - David Forlen (@DavidForlen) -- Enzo Chiotti +- Enzo Chiotti (@EnzoPGCDChiotti) - Erwan Kessler (@hube12) -- Florent Delvert +- Florent Delvert (@FlorentPGCDDelvert) - Frédéric Venier (@FredericVenier et @VFrederic) - Louise Bulone (@Gragalit) - Nathan Barloy (@nathanBarloy) diff --git a/make.bat b/make.bat new file mode 100644 index 0000000..41b420e --- /dev/null +++ b/make.bat @@ -0,0 +1,55 @@ +@echo off +setlocal + +if "%1"=="" ( + echo Autostart + GOTO autostart +) else ( + echo Parsing + GOTO loop +) + +:autostart +if not exist "bin" ( + echo Build + mkdir "bin" + javac -d bin -cp src;res;lib\common\*;lib\x86\* src\Main.java +) +goto RUN + +:loop +if x%1 equ x goto done +goto checkParam + +:paramError +echo %1 n'est pas une option valide +echo Usage: make.bat [build^|run^|clean...] +goto next + +:next +shift /1 +goto loop + +:checkParam +if "%1" equ "build" goto BUILD +if "%1" equ "clean" goto CLEAN +if "%1" equ "run" goto RUN +goto paramError + +:BUILD + echo Build + if not exist "bin" mkdir "bin" + javac -d bin -cp src;res;lib\common\*;lib\x86\* src\Main.java + GOTO next + +:CLEAN + echo Clean + rmdir /Q /S bin + GOTO next + +:RUN + echo Run + java -Djava.library.path=sys\x86 -cp bin;res;lib\common\*;lib\x86\* Main + GOTO next + +:done