Source

gltut / Documents / Build / BuildSingleMathSVG.lua

Full commit

local filename = ...;

local outname = filename:match("(.+)%.mathml$") .. ".svg";

local cmd = {};
cmd[#cmd + 1] = "python";
cmd[#cmd + 1] = [["\Projects\XMLTools\Python26\SVGMath\math2svg.py"]];
cmd[#cmd + 1] = "-o";
cmd[#cmd + 1] = [["]] .. outname .. [["]];
cmd[#cmd + 1] = [["]] .. filename .. [["]];

print(table.concat(cmd, " "));
os.execute(table.concat(cmd, " "));