--- /dev/null
+@rem Script to build Lua under "Visual Studio .NET Command Prompt".\r
+@rem Do not run from this directory; run it from the toplevel: etc\luavs.bat .\r
+@rem It creates lua51.dll, lua51.lib, lua.exe, and luac.exe in src.\r
+@rem (contributed by David Manura and Mike Pall)\r
+\r
+@setlocal\r
+@set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE\r
+@set MYLINK=link /nologo\r
+@set MYMT=mt /nologo\r
+\r
+cd src\r
+%MYCOMPILE% /DLUA_BUILD_AS_DLL l*.c\r
+del lua.obj luac.obj\r
+%MYLINK% /DLL /out:lua51.dll l*.obj\r
+if exist lua51.dll.manifest^\r
+ %MYMT% -manifest lua51.dll.manifest -outputresource:lua51.dll;2\r
+%MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c\r
+%MYLINK% /out:lua.exe lua.obj lua51.lib\r
+if exist lua.exe.manifest^\r
+ %MYMT% -manifest lua.exe.manifest -outputresource:lua.exe\r
+%MYCOMPILE% l*.c print.c\r
+del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj^\r
+ loslib.obj ltablib.obj lstrlib.obj loadlib.obj\r
+%MYLINK% /out:luac.exe *.obj\r
+if exist luac.exe.manifest^\r
+ %MYMT% -manifest luac.exe.manifest -outputresource:luac.exe\r
+del *.obj *.manifest\r
+cd ..\r