ó
à™xTc           @   su   d  d l  m Z d  d l m Z d  d l Td  d l Z d  d l Z e j d „ Z e	 d k rq e e j
 d ƒ n  d S(   iÿÿÿÿ(   t   division(   t   OptionParser(   t   *Nc      
   C   s¥  t  j d k r | d IJd  St d d d ƒ } | j d d d d	 d
 d d d t j ƒ  ƒ| j |  ƒ \ } }  | j } t j j	 | d ƒ } t j j
 | ƒ s³ t d | ƒ ‚ n  t j j	 | d d ƒ } t j j | ƒ rD| d IJt t j j	 | d ƒ d ƒ j d | | f ƒ | d IJt d d | | | f d | ƒn | d | IJt j j	 | d d ƒ } t j j | ƒ rÕ| d IJt d d | | | f d | ƒ| d IJt d  d! | | | f d | ƒn | d" | IJt j j	 | d# d$ ƒ } t j j	 | d d$ ƒ }	 t j j |	 ƒ rû| d% IJt t j j	 | d& ƒ ƒ }
 t t j j	 |	 d' ƒ d ƒ } x- |
 j ƒ  D] } | j | j d( | ƒ ƒ quW| j ƒ  | d) IJt d* | d | ƒt d+ | d | ƒ| d, IJt d- | | f d | ƒn | d. |	 IJt j j	 | d# ƒ } t j j | ƒ rœ| d/ IJt j j	 | d0 d1 ƒ } t j j | ƒ stt j | ƒ n  t t j j	 | d2 ƒ d ƒ j d3 ƒ n d4 GHd  S(5   Nt   darwins2   This script is only applicable to Linux - exiting.t   descriptions:   Generate new config files for various third-party modules s.   required for the graphical interface (if any).s   --build_dirt   destt	   build_dirt   actiont   storet   helps   CCTBX build directoryt   defaultt   bases#   Base directory '%s' does not exist.t   etct   pangos   generating pangorc filet   pangorct   ws¨   
#
# Auto-generated by CCTBX or PHENIX installer, do not change
#
#
[Pango]
ModuleFiles = %s/etc/pango/pango.modules

[PangoX]
AliasFiles = %s/etc/pango/pangox.aliases
s   generating pango.modules files<   %s/bin/pango-querymodules %s/lib/pango/1.6.0/modules/*.so > s   %s/pango.modulest   logs0   %s not present, could not regenerate pango filess   gtk-2.0s   generating gtk.immodules filesC   %s/bin/gtk-query-immodules-2.0 %s/lib/gtk-2.0/2.10.0/immodules/*.sos   > %s/etc/gtk-2.0/gtk.immoduless"   generating gdk-pixbuf.loaders filesB   %s/bin/gdk-pixbuf-query-loaders %s/lib/gtk-2.0/2.10.0/loaders/*.sos$    > %s/etc/gtk-2.0/gdk-pixbuf.loaderss7   %s not present, could not regenerate gdk-pixbuf.loaderst   sharet   fontss   updating fonts/local.conf files   local.conf.ins
   local.conft   FONTCONFIG_PATHs   running mkfontdirs   mkfontscale %ss   mkfontdir %ss   rebuilding font caches   %s/bin/fc-cache -v %ss'   %s not present, could not rebuild fontss   generating index.theme filet   iconst   hicolors   index.themesÚ   
#
# Auto-generated by PHENIX installer, do not change'
#
[Icon Theme]
Name=Hicolor
Comment=Fallback icon theme
Hidden=true
Directories=48x48/filesystems

[48x48/filesystems]
Size=48
Context=FileSystems
Type=Threshold
s:   problem with installation, could not make index.theme file(   t   syst   platformR   t
   add_optiont   ost   getcwdt
   parse_argsR   t   patht   joint   existst   OSErrort   isdirt   opent   writet   callt	   readlinest   replacet   closet   makedirs(   t   argst   outt   parsert   optionsR   t   base_dirt	   pango_dirt   gtk_dirt   fonts_share_dirt   fonts_etc_dirt   fonts_int	   fonts_outt   linet	   share_dirt   hicolor_dir(    (    sW   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/libtbx/auto_build/regenerate_module_files.pyt   run	   sv    

	











t   __main__i   (   t
   __future__R    t   optparseR   t   installer_utilsR   R   t   stdoutR6   t   __name__t   argv(    (    (    sW   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/libtbx/auto_build/regenerate_module_files.pyt   <module>   s   
_