From aa14fdaa9a507102c686ea06c75c06fd6dfd9bdf Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Sat, 18 Feb 2017 06:30:54 +0300 Subject: Lets go --- makehmod.bat | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 makehmod.bat (limited to 'makehmod.bat') diff --git a/makehmod.bat b/makehmod.bat new file mode 100644 index 0000000..cbd2ad6 --- /dev/null +++ b/makehmod.bat @@ -0,0 +1,29 @@ +@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 +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 +echo Done! +goto end + +:notar +echo Error %ERRORLEVEL%. Maybe you have not tar? +goto end + +:error +echo Error %ERRORLEVEL% +goto end + +:end \ No newline at end of file -- cgit v1.2.3