| 1 | ; docformat = 'rst' |
|---|
| 2 | |
|---|
| 3 | ;+ |
|---|
| 4 | ; Build all the files necessary for the updates.idldev.com site to give |
|---|
| 5 | ; updates for IDLdoc through the IDL Workbench. |
|---|
| 6 | ;- |
|---|
| 7 | pro idldoc_build_updates_site |
|---|
| 8 | compile_opt strictarr |
|---|
| 9 | |
|---|
| 10 | root = mg_src_root() |
|---|
| 11 | vars = { version: idldoc_version() } |
|---|
| 12 | |
|---|
| 13 | siteTemplateFile = filepath('site.xml.tt', subdir='updates-resources', root=root) |
|---|
| 14 | siteFile = filepath('site.xml', subdir='updates.idldev.com', root=root) |
|---|
| 15 | |
|---|
| 16 | siteTemplate = obj_new('MGffTemplate', siteTemplateFile) |
|---|
| 17 | siteTemplate->process, vars, siteFile |
|---|
| 18 | obj_destroy, siteTemplate |
|---|
| 19 | |
|---|
| 20 | featureResources = filepath('', $ |
|---|
| 21 | subdir=['updates-resources', 'features'], $ |
|---|
| 22 | root=root) |
|---|
| 23 | featureRoot = filepath('', $ |
|---|
| 24 | subdir=['updates.idldev.com', 'features', 'com.idldev.idl.idldoc.feature_' + idldoc_version()], $ |
|---|
| 25 | root=root) |
|---|
| 26 | |
|---|
| 27 | pluginResources = filepath('', $ |
|---|
| 28 | subdir=['updates-resources', 'plugins'], $ |
|---|
| 29 | root=root) |
|---|
| 30 | pluginRoot = filepath('', $ |
|---|
| 31 | subdir=['updates.idldev.com', 'plugins'], $ |
|---|
| 32 | root=root) |
|---|
| 33 | |
|---|
| 34 | file_mkdir, featureRoot |
|---|
| 35 | |
|---|
| 36 | featureTemplate = obj_new('MGffTemplate', featureResources + 'feature.xml.tt') |
|---|
| 37 | featureTemplate->process, vars, featureRoot + 'feature.xml' |
|---|
| 38 | obj_destroy, featureTemplate |
|---|
| 39 | |
|---|
| 40 | manifestTemplate = obj_new('MGffTemplate', pluginResources + 'manifest.tt') |
|---|
| 41 | manifestTemplate->process, vars, pluginRoot + 'manifest' |
|---|
| 42 | obj_destroy, manifestTemplate |
|---|
| 43 | end |
|---|