forked from efrederickson/EventLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildRbxm.lua
25 lines (23 loc) · 916 Bytes
/
BuildRbxm.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
local source = io.open("EventLib.lua", "rb"):read"*a"
source = source:gsub("&", "&")
source = source:gsub("\"", """)
source = source:gsub("<", "<")
source = source:gsub(">", ">")
source = source:gsub("\t", "	")
local source2 = [[<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
<External>null</External>
<External>nil</External>
<Item class="Script" referent="RBX0">
<Properties>
<bool name="Archivable">true</bool>
<bool name="Disabled">false</bool>
<Content name="LinkedSource"><null></null></Content>
<string name="Name">EventLib</string>
<ProtectedString name="Source">]] .. source .. [[</ProtectedString>
</Properties>
</Item>
</Item>
</roblox>]]
local f = io.open("EventLib.rbxm", "wb")
f:write(source2)
f:close()