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

makehmod.bat - github.com/ClusterM/retroarch-clover.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b90eab856da7a12563c227335697d56d4446631b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@echo off
set moddir=retroarch.hmod
set modname=retroarch.hmod
set outdir=output
for %%x in (%*) do set outdir=%1

cd %moddir%
if not ERRORLEVEL 0 goto error
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%"
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

:notar
echo Error %ERRORLEVEL%. Maybe you have not tar?
goto end

:error
echo Error %ERRORLEVEL%
goto end

:end