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