Show
Ignore:
Timestamp:
09/07/08 21:38:44 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1220823524 +0000
git-parent:

[1ba47323bb855f603913d7d0f5728743f990f3d8]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1220823524 +0000
Message:

oops, extract_xml.lua produces just the meta XML, need to docbook it, refs #21

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules-lua/extract_xml.lua

    r6cf2b31 r45b262a  
    11rc = 0 
    22 
    3 function extract(file, docsdir
     3function extract(file, outfile
    44  local module = file:gsub('.lua$', ''):gsub('/', '.') 
    55  local M = require(module) 
     
    1010    xml_description = 
    1111      function(xml) 
    12         local f = io.open(docsdir .. "/" .. module .. ".xml", "w+") 
     12        local f = io.open(outfile, "w+") 
    1313        if not f then 
    1414          rc = 2 
     
    2222 
    2323if (#arg) ~= 2 then 
    24   print(string.format("%s <module> <docs directory>\n", (arg[0]))) 
     24  print(string.format("%s <module> <outputfile>\n", (arg[0]))) 
    2525  os.exit(1) 
    2626end