##// END OF EJS Templates
Update setup and support tools to include new man pages.
Fernando Perez -
Show More
@@ -78,14 +78,38 b" if len(sys.argv) >= 2 and sys.argv[1] in ('sdist','bdist_rpm'):"
78 #('docs/magic.tex',
78 #('docs/magic.tex',
79 #['IPython/Magic.py'],
79 #['IPython/Magic.py'],
80 #"cd doc && ./update_magic.sh" ),
80 #"cd doc && ./update_magic.sh" ),
81
81
82 ('docs/man/ipcluster.1.gz',
83 ['docs/man/ipcluster.1'],
84 'cd docs/man && gzip -9c ipcluster.1 > ipcluster.1.gz'),
85
86 ('docs/man/ipcontroller.1.gz',
87 ['docs/man/ipcontroller.1'],
88 'cd docs/man && gzip -9c ipcontroller.1 > ipcontroller.1.gz'),
89
90 ('docs/man/ipengine.1.gz',
91 ['docs/man/ipengine.1'],
92 'cd docs/man && gzip -9c ipengine.1 > ipengine.1.gz'),
93
82 ('docs/man/ipython.1.gz',
94 ('docs/man/ipython.1.gz',
83 ['docs/man/ipython.1'],
95 ['docs/man/ipython.1'],
84 "cd docs/man && gzip -9c ipython.1 > ipython.1.gz"),
96 'cd docs/man && gzip -9c ipython.1 > ipython.1.gz'),
97
98 ('docs/man/ipython-wx.1.gz',
99 ['docs/man/ipython-wx.1'],
100 'cd docs/man && gzip -9c ipython-wx.1 > ipython-wx.1.gz'),
101
102 ('docs/man/ipythonx.1.gz',
103 ['docs/man/ipythonx.1'],
104 'cd docs/man && gzip -9c ipythonx.1 > ipythonx.1.gz'),
105
106 ('docs/man/irunner.1.gz',
107 ['docs/man/irunner.1'],
108 'cd docs/man && gzip -9c irunner.1 > irunner.1.gz'),
85
109
86 ('docs/man/pycolor.1.gz',
110 ('docs/man/pycolor.1.gz',
87 ['docs/man/pycolor.1'],
111 ['docs/man/pycolor.1'],
88 "cd docs/man && gzip -9c pycolor.1 > pycolor.1.gz"),
112 'cd docs/man && gzip -9c pycolor.1 > pycolor.1.gz'),
89 ]
113 ]
90
114
91 # Only build the docs if sphinx is present
115 # Only build the docs if sphinx is present
@@ -212,6 +212,31 b' def find_data_files():'
212
212
213 return data_files
213 return data_files
214
214
215
216 def make_man_update_target(manpage):
217 """Return a target_update-compliant tuple for the given manpage.
218
219 Parameters
220 ----------
221 manpage : string
222 Name of the manpage, must include the section number (trailing number).
223
224 Example
225 -------
226
227 >>> make_man_update_target('ipython.1') #doctest: +NORMALIZE_WHITESPACE
228 ('docs/man/ipython.1.gz',
229 ['docs/man/ipython.1'],
230 'cd docs/man && gzip -9c ipython.1 > ipython.1.gz')
231 """
232 man_dir = pjoin('docs', 'man')
233 manpage_gz = manpage + '.gz'
234 manpath = pjoin(man_dir, manpage)
235 manpath_gz = pjoin(man_dir, manpage_gz)
236 gz_cmd = ( "cd %(man_dir)s && gzip -9c %(manpage)s > %(manpage_gz)s" %
237 locals() )
238 return (manpath_gz, [manpath], gz_cmd)
239
215 #---------------------------------------------------------------------------
240 #---------------------------------------------------------------------------
216 # Find scripts
241 # Find scripts
217 #---------------------------------------------------------------------------
242 #---------------------------------------------------------------------------
General Comments 0
You need to be logged in to leave comments. Login now