Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/retroarch-clover.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'makehmod.bat')
-rw-r--r--makehmod.bat15
1 files changed, 8 insertions, 7 deletions
diff --git a/makehmod.bat b/makehmod.bat
index cbd2ad6..b90eab8 100644
--- a/makehmod.bat
+++ b/makehmod.bat
@@ -6,14 +6,15 @@ for %%x in (%*) do set outdir=%1
cd %moddir%
if not ERRORLEVEL 0 goto error
-tar -czvf %modname% *
+if EXIST "%modname%" del /F /Q "%modname%"
+tar -czvf "%modname%" *
if ERRORLEVEL 9009 goto notar
-if not ERRORLEVEL 0 goto error
-md ..\%outdir%
-if not ERRORLEVEL 0 goto error
-del /F /S /Q ..\%outdir%
-if not ERRORLEVEL 0 goto error
-move /Y %modname% ..\%outdir%
+if NOT ERRORLEVEL 0 goto error
+if NOT EXIST "..\%outdir%" md "..\%outdir%"
+if NOT ERRORLEVEL 0 goto error
+if EXIST "..\%outdir%\%modname%" del /F /Q "..\%outdir%\%modname%"
+if NOT ERRORLEVEL 0 goto error
+move /Y "%modname%" "..\%outdir%"
if not ERRORLEVEL 0 goto error
echo Done!
goto end