Permalink
Browse files

fixed paths

  • Loading branch information...
vpmedia committed Jul 20, 2012
1 parent e375752 commit e476329d7fbc8e92a2760622442c405662bf2e6d
Showing with 46 additions and 6 deletions.
  1. +25 −0 build.bat
  2. +0 −5 compile.bat
  3. +21 −1 convert.bat
View
@@ -0,0 +1,25 @@
+::
+:: Copyright 2012, Andras Csizmadia <andras@vpmedia.eu>.
+::
+
+:: Echo off and begin localisation of Environment Variables
+@ECHO OFF & SETLOCAL
+
+:: Prepare the Command Processor
+VERIFY errors 2>nul
+SETLOCAL ENABLEEXTENSIONS
+IF ERRORLEVEL 1 ECHO Warning: Unable to enable extensions.
+SETLOCAL ENABLEDELAYEDEXPANSION
+
+:: Save base directory
+PUSHD %CD%
+::PUSHD %~dp0
+
+:: Set title
+TITLE %~n0
+
+:: STARTUP
+echo Compiling...
+del bin\As3ToHaxe.n /Q
+haxe -cp src -main As3ToHaxe -neko bin/As3ToHaxe.n
+convert.bat
View
@@ -1,5 +0,0 @@
-@echo off
-echo Compiling...
-del bin\As3ToHaxe.n /Q
-haxe -cp src -main As3ToHaxe -neko bin/As3ToHaxe.n
-convert.bat
View
@@ -1,4 +1,24 @@
-@echo off
+::
+:: Copyright 2012, Andras Csizmadia <andras@vpmedia.eu>.
+::
+
+:: Echo off and begin localisation of Environment Variables
+@ECHO OFF & SETLOCAL
+
+:: Prepare the Command Processor
+VERIFY errors 2>nul
+SETLOCAL ENABLEEXTENSIONS
+IF ERRORLEVEL 1 ECHO Warning: Unable to enable extensions.
+SETLOCAL ENABLEDELAYEDEXPANSION
+
+:: Save base directory
+PUSHD %CD%
+::PUSHD %~dp0
+
+:: Set title
+TITLE %~n0
+
+:: STARTUP
echo Converting...
del test\hx\Main.hx /Q
neko bin/As3ToHaxe.n -from test/as3 -to test/hx -useSpaces false

0 comments on commit e476329

Please sign in to comment.