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: c8ced74498c27e15201bc222021f2faa9a8df2ba (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
31
@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
cd ..
if NOT EXIST "%outdir%" md "%outdir%"
if NOT ERRORLEVEL 0 goto error
if EXIST "%outdir%\%modname%" del /F /S /Q "%outdir%\%modname%"
if NOT ERRORLEVEL 0 goto error
move /Y "%moddir%\%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