diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-18 23:51:47 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-18 23:51:47 +0300 |
commit | b074c095893a1b36a73044ffa06b18692f95d46e (patch) | |
tree | 0f3f69fc8363170a321501b6fd2c5dd1eba52c87 /makehmod.bat | |
parent | 6ad24150cebe5521ac471b8465c4781138afc073 (diff) |
Nintendo Sixty Foooouuuur!
Diffstat (limited to 'makehmod.bat')
-rw-r--r-- | makehmod.bat | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/makehmod.bat b/makehmod.bat index b90eab8..aa5d3c9 100644 --- a/makehmod.bat +++ b/makehmod.bat @@ -10,11 +10,12 @@ if EXIST "%modname%" del /F /Q "%modname%" tar -czvf "%modname%" *
if ERRORLEVEL 9009 goto notar
if NOT ERRORLEVEL 0 goto error
-if NOT EXIST "..\%outdir%" md "..\%outdir%"
+cd ..
+if NOT EXIST "%outdir%" md "%outdir%"
if NOT ERRORLEVEL 0 goto error
-if EXIST "..\%outdir%\%modname%" del /F /Q "..\%outdir%\%modname%"
+if EXIST "%outdir%\%modname%" del /F /S /Q "%outdir%\%modname%"
if NOT ERRORLEVEL 0 goto error
-move /Y "%modname%" "..\%outdir%"
+move /Y "%moddir%\%modname%" "%outdir%"
if not ERRORLEVEL 0 goto error
echo Done!
goto end
|