diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-18 06:30:54 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-18 06:30:54 +0300 |
commit | aa14fdaa9a507102c686ea06c75c06fd6dfd9bdf (patch) | |
tree | cd1baebb733d17b8a757f63929413c3b77149955 /makehmod.bat |
Lets go
Diffstat (limited to 'makehmod.bat')
-rw-r--r-- | makehmod.bat | 29 |
1 files changed, 29 insertions, 0 deletions
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 |