summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-10-04 08:33:14 -0700
committerPixel <pixel@nobis-crew.org>2008-10-04 08:33:14 -0700
commit6eb21f74c8cb7aa93bc38c60f8e37b901f5daf2e (patch)
tree26716be334956f9c7399458172515e05c04b70f9
parentc00485434a2ab48c4ef9bf32bfaab22d9386ab75 (diff)
Error handling in the lua2c.cmd batch file.
-rw-r--r--lua2c.cmd5
1 files changed, 5 insertions, 0 deletions
diff --git a/lua2c.cmd b/lua2c.cmd
index df71c76..4389e66 100644
--- a/lua2c.cmd
+++ b/lua2c.cmd
@@ -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