Permalink
Browse files

Initial import of the entire LuaPlus 5.1 tree

  • Loading branch information...
jjensen committed Apr 3, 2010
0 parents commit ac2808f1192aa435e7e3c4fb5789414256b4caf9
Showing 3,654 changed files with 1,329,165 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
@@ -0,0 +1,3 @@
+bin*/
+obj/
+
@@ -0,0 +1 @@
+lua "%~dp0AddAutoExp.lua"
@@ -0,0 +1,49 @@
+require "iox"
+
+function AddAutoExp(autoexpFileName)
+ local ignore = false
+
+ local file = io.open(autoexpFileName .. ".new", "wt")
+
+ for line in io.lines(autoexpFileName) do
+ if line == '; -- LuaPlus and Lua begin --' then
+ ignore = true
+ elseif line == '; -- LuaPlus and Lua end --' then
+ ignore = false
+ elseif line == '; This section lets you define your own errors for the HRESULT display.' then
+ for newLine in io.lines('AutoExpAdditions.txt') do
+ file:write(newLine .. "\n")
+ end
+
+ file:write(line .. "\n")
+ else
+ if not ignore then
+ file:write(line .. "\n")
+ end
+ end
+ end
+
+ file:close()
+
+ iox.CopyFile(autoexpFileName .. ".new", autoexpFileName)
+ iox.DeleteFile(autoexpFileName .. ".new")
+end
+
+
+function AddVSAutoExp(environmentVariable)
+ local VS = os.getenv(environmentVariable)
+ if not VS then return end
+
+ VS = VS .. '..\\..\\'
+
+ AddAutoExp(VS .. "\\Common7\\Packages\\Debugger\\autoexp.dat")
+end
+
+
+AddVSAutoExp("VS80COMNTOOLS")
+AddVSAutoExp("VS90COMNTOOLS")
+
+local XEDK = os.getenv("XEDK")
+if XEDK then
+ AddAutoExp(XEDK .. "\\bin\\win32\\autoexp.dat")
+end
Oops, something went wrong.

0 comments on commit ac2808f

Please sign in to comment.