diff options
author | deva <deva> | 2009-07-24 13:58:25 +0000 |
---|---|---|
committer | deva <deva> | 2009-07-24 13:58:25 +0000 |
commit | c0392425fbc024084da9c626fa47814a34eba3e7 (patch) | |
tree | abc4a38fdf80beaac609e8d3f2bf5a249155cab8 /server | |
parent | 719401aa5ecbbd19c36e7b215761a81714dd3f40 (diff) |
'fixed' output to handle new macro naming/versioning scheme
Diffstat (limited to 'server')
-rw-r--r-- | server/src/macrotool_dump.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/macrotool_dump.cc b/server/src/macrotool_dump.cc index 920d4b6..3f9cfd7 100644 --- a/server/src/macrotool_dump.cc +++ b/server/src/macrotool_dump.cc @@ -71,14 +71,14 @@ static std::map<std::string, struct _macro> macroList() std::vector<std::string> macrofiles = getMacros(); std::vector<std::string>::iterator mfs = macrofiles.begin(); while(mfs != macrofiles.end()) { - std::string name = mfs->substr(0, mfs->length() - 4); + //std::string name = mfs->substr(0, mfs->length() - 4); MacroParser parser(Conf::xml_basedir + "/macros/" + *mfs); parser.parse(); Macro *macro = parser.getMacro(); - std::string key = name;// + macro->attributes["version"]; - macros[key].name = name; + std::string key = macro->attributes["name"];// + "-" + macro->attributes["version"]; + macros[key].name = macro->attributes["name"]; macros[key].file = *mfs; macros[key].title = macro->window.attributes["caption"]; macros[key].version = macro->attributes["version"]; @@ -134,7 +134,7 @@ static void dump_macros() printcolumn(ms->second.version, version_sz); printcolumn(ms->second.file, file_sz); printcolumn(ms->second.title, title_sz); - + std::set<std::string>::iterator ts = ms->second.templates.begin(); while(ts != ms->second.templates.end()) { if(ts != ms->second.templates.begin()) printf(", "); |