#!/usr/bin/env ruby

Dir::mkdir './doc'    unless FileTest::exist? './doc'
Dir::mkdir './doc/en' unless FileTest::exist? './doc/en'

print "ruby striprd.rb msql.c > ./doc/en/msql.rd\n"
`ruby exportrd.rb msql.c > ./doc/en/msql.rd`

print "rd2 ./doc/en/msql.rd > ./doc/en/msql.html\n"
`rd2 ./doc/en/msql.rd > ./doc/en/msql.html`
