³ò
Q”CGc        
   @   sz   d  Z  d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d e i i	 f d „  ƒ  YZ
 d S(   sR   distutils_extra.command.build_help

Implements the Distutils 'build_help' command.iÿÿÿÿNt
   build_helpc           B   s2   e  Z d  Z d g Z d „  Z d „  Z d „  Z RS(   s%   install a docbook based documentationt   help_dirs!   help directory of the source treec         C   s   d  |  _ d  S(   N(   t   NoneR   (   t   self(    (    sE   /src/hotwire-shell.svn/dist/test/DistUtilsExtra/command/build_help.pyt   initialize_options   s    c         C   s-   |  i  d  j o t i i d ƒ |  _  n d  S(   Nt   help(   R   R   t   ost   patht   join(   R   (    (    sE   /src/hotwire-shell.svn/dist/test/DistUtilsExtra/command/build_help.pyt   finalize_options   s    c         C   s  |  i  i } |  i d ƒ x½ t i d ƒ D]¬ } | t d ƒ } |  i d | ƒ t i i d |  i  i i	 | ƒ } t i i d |  i  i i	 | d ƒ } | i
 | t i d | ƒ f ƒ | i
 | t i d | ƒ f ƒ q) W| i
 t i i d	 |  i  i i	 ƒ t i d
 ƒ f ƒ d  S(   Ns   Setting up help files...s   help/*s   help/s    Language: %ss   share/gnome/helpt   figuress   %s/*.xmls   %s/figures/*.pngs	   share/omfs   help/*/*.omf(   t   distributiont
   data_filest   announcet   globt   lenR   R   R   t   metadatat   namet   append(   R   R   t   filepatht   langt   path_xmlt   path_figures(    (    sE   /src/hotwire-shell.svn/dist/test/DistUtilsExtra/command/build_help.pyt   run   s$     	 	N(   s   help_dirNs!   help directory of the source tree(   t   __name__t
   __module__t   descriptionR   t   user_optionsR   R	   R   (    (    (    sE   /src/hotwire-shell.svn/dist/test/DistUtilsExtra/command/build_help.pyR       s
   			(   t   __doc__t	   distutilsR   R   t   os.patht   ret   syst   distutils.command.buildt   cmdt   CommandR    (    (    (    sE   /src/hotwire-shell.svn/dist/test/DistUtilsExtra/command/build_help.pys   <module>   s   