Skip to content

Commit

Permalink
Ajout du fichier make.bat manquant
Browse files Browse the repository at this point in the history
  • Loading branch information
PolariTOON committed Feb 8, 2020
1 parent 370e90c commit ed721e8
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/bin
/out
/tmp
/zip
/.idea
*.iml
*.log
*.zip
/*.idea
/*.iml
.DS_Store
Thumbs.db
4 changes: 2 additions & 2 deletions authors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
55 changes: 55 additions & 0 deletions make.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ed721e8

Please sign in to comment.