Fix WikiText conversion.

This commit is contained in:
david 2002-08-25 16:36:51 +00:00
parent bea5722e1e
commit c5cf8f4ae1
1 changed files with 2 additions and 2 deletions

View File

@ -247,10 +247,10 @@ class Project:
target.commands.add(Command('rm -f *.xml'))
if sourcefile.format_code=='wikitext':
self.targets.add(dbsgmlfile, [sourcefile.file_only], [Command('wt2db -n -s ' + dbsgmlfile + ' -o ' + sourcefile.file_only, output_to='log/wt2db.log')])
self.targets.add(dbsgmlfile, [sourcefile.file_only], [Command('wt2db -n -s ' + sourcefile.file_only + ' -o ' + dbsgmlfile, output_to='log/wt2db.log', stderr_check=1)])
self.targets.add(xmlfile, [dbsgmlfile], [Command('xmllint --sgml ' + dbsgmlfile, output_to=xmlfile, errors_to='log/xmllint.log', stderr_check=1)])
elif sourcefile.format_code=='text':
self.targets.add(dbsgmlfile, [sourcefile.file_only], [Command('wt2db -n -s ' + dbsgmlfile + ' -o ' + sourcefile.file_only, errors_to='wt2db.log', stderr_check=1)])
self.targets.add(dbsgmlfile, [sourcefile.file_only], [Command('wt2db -n -s ' + sourcefile.file_only + ' -o ' + dbsgmlfile, output_to='log/wt2db.log', stderr_check=1)])
self.targets.add(xmlfile, [dbsgmlfile], [Command('xmllint --sgml ' + dbsgmlfile, output_to=xmlfile, errors_to='log/xmllint.log', stderr_check=1)])
elif sourcefile.format_code=='texinfo':
self.targets.add(dbsgmlfile, [sourcefile.file_only], [Command('texi2db -f ' + sourcefile.file_only, errors_to='texi2db.log', stderr_check=1)])