- Timestamp:
- 09/07/08 21:38:44 (5 years ago)
- git-parent:
- Files:
-
- src/modules-lua/extract_xml.lua (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
src/modules-lua/extract_xml.lua
r6cf2b31 r45b262a 1 1 rc = 0 2 2 3 function extract(file, docsdir)3 function extract(file, outfile) 4 4 local module = file:gsub('.lua$', ''):gsub('/', '.') 5 5 local M = require(module) … … 10 10 xml_description = 11 11 function(xml) 12 local f = io.open( docsdir .. "/" .. module .. ".xml", "w+")12 local f = io.open(outfile, "w+") 13 13 if not f then 14 14 rc = 2 … … 22 22 23 23 if (#arg) ~= 2 then 24 print(string.format("%s <module> < docs directory>\n", (arg[0])))24 print(string.format("%s <module> <outputfile>\n", (arg[0]))) 25 25 os.exit(1) 26 26 end
