

def make_man_update_target(manpage):
    "Return a target_update-compliant tuple for the given manpage.\n\n    Parameters\n    ----------\n    manpage : string\n      Name of the manpage, must include the section number (trailing number).\n\n    Example\n    -------\n\n    >>> make_man_update_target('ipython.1') #doctest: +NORMALIZE_WHITESPACE\n    ('docs/man/ipython.1.gz',\n     ['docs/man/ipython.1'],\n     'cd docs/man && gzip -9c ipython.1 > ipython.1.gz')\n    "
    man_dir = pjoin('docs', 'man')
    manpage_gz = (manpage + '.gz')
    manpath = pjoin(man_dir, manpage)
    manpath_gz = pjoin(man_dir, manpage_gz)
    gz_cmd = ('cd %(man_dir)s && gzip -9c %(manpage)s > %(manpage_gz)s' % locals())
    return (manpath_gz, [manpath], gz_cmd)

dataset/ETHPy150Open ipython/ipython-py3k/setupbase.py make_man_update_target/original