diff options
| author | Pixel <pixel@nobis-crew.org> | 2008-10-04 08:33:14 -0700 |
|---|---|---|
| committer | Pixel <pixel@nobis-crew.org> | 2008-10-04 08:33:14 -0700 |
| commit | 6eb21f74c8cb7aa93bc38c60f8e37b901f5daf2e (patch) | |
| tree | 26716be334956f9c7399458172515e05c04b70f9 | |
| parent | c00485434a2ab48c4ef9bf32bfaab22d9386ab75 (diff) | |
Error handling in the lua2c.cmd batch file.
| -rw-r--r-- | lua2c.cmd | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,4 +1,9 @@ @echo off c:\work\luac %1 -o %~n1.clua +if errorlevel 1 goto failed c:\work\bin2c %~n1.clua %~n1.c %~n1 +if errorlevel 1 goto failed del %~n1.clua +exit 0 +failed: +exit 255 |
