aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/defaults.lua
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-08-08 11:47:03 +0000
committerbloodstalker <thabogre@gmail.com>2018-08-08 11:47:03 +0000
commit11b88d35f89bcc679b09562b566478271137d649 (patch)
treea4077ccb545bd6b72918c33ed76ea29da3160334 /bruiser/defaults.lua
parentadded new options to delf (diff)
downloadmutator-11b88d35f89bcc679b09562b566478271137d649.tar.gz
mutator-11b88d35f89bcc679b09562b566478271137d649.zip
faultreiber is a submodule now. it generates binary file format parsers in C. the memory management side of faultreiber is not implemented yet since im on the fence on how to do it. faultreiber along with tablegen will completely automate the process of adding new file formats to bruiser.
Diffstat (limited to '')
-rw-r--r--bruiser/defaults.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/bruiser/defaults.lua b/bruiser/defaults.lua
index 8f1692b..70ecefb 100644
--- a/bruiser/defaults.lua
+++ b/bruiser/defaults.lua
@@ -1,7 +1,7 @@
-- bruiser default script.
-- This is run everytime bruiser is called.
--- By default bruiser will look for a file named defaults.lua in the same
--- directory as its executable. you can change the file using the --luadefault
+-- By default bruiser will look for a file named defaults.lua in the same
+-- directory as its executable. you can change the file using the --luadefault
-- option.
-- adds luarocks' path and cpath to bruiser
@@ -12,7 +12,7 @@ function default_luarocks_modules()
for line in luarocks_handle:lines() do
local path = string.match(line, "LUA_PATH%s*=%s*('.+')")
local cpath = string.match(line, "LUA_CPATH%s*=%s*('.+')")
- if path ~= nil then
+ if path ~= nil then
package.path = package.path..";"..string.sub(path, 2, -2)
end
if cpath ~= nil then