³ò
¾íýIc           @   s-  d  Z  d d k Z d d k Z d d k l Z e d j oîd d g Z e i i e i	 d d ƒ Z
 e i	 d	 Z e d
 e i ƒ Z e p: e i i e
 d d ƒ Z e i e i d d d e ƒ Z n d GHe Gd Ge
 GHd GHx7 e e e ƒ ƒ D]# Z e i i e e e ƒ e e <qí We i i e i i e i d ƒ d d e i d ƒ i ƒ  d d !d ƒ Z d Z e e d ƒ Z xV e D]N Z e GHe i d e d ƒ e e d e
 Z e i e i e ƒ i ƒ  ƒ qyWe i ƒ  d e GHe o	 d GHn3 d GHe i e ƒ Z e i e i d d d d  ƒ Z d! GHn d S("   sM  
#+
# NAME:
#	rsync_ssw
# PURPOSE:
#	Python cgi script to synchronize master SMEI tree with the SSW mirror 
# CALLING SEQUENCE:
#	rsync_ssw.py
# OPTIONAL INPUT PARAMETERS:
#	-nodoc		if set, no new documentation is generated
# PROCEDURE:
#	List of subdirectories in $SMEI to be mirrored is hardcoded
#	Uses rsync
# CALLS:
#	tiny.is_there
# MODIFICATION HISTORY:
#	JAN-2002, Paul Hick (UCSD/CASS)
#	FEB-2002, Paul Hick (UCSD/CASS)
#		Removed $SMEI/pro from SSW_SMEI master
#	AUG-2002, Paul Hick (UCSD/CASS)
#		Output file is now created in subdirectory ssw_mirror
#		of the directory where this script is located.
#		Added call to 'idl run_ssw_smei.pro' to update the html
#		documentation before calling rsync.
#	JAN-2003, Paul Hick (UCSD/CASS)
#		Added -nodoc keyword
#	APR-2003, Paul Hick (UCSD/CASS; pphick@ucsd.edu)
#		Added Fortran treee
#-
iÿÿÿÿN(   t   is_theret   __main__t   setupt   ucsdt   FTP_ANONt   ssw_smeit   SMEIs   -nodoct   doct   rms   -rft    s    ---> i    t
   ssw_mirrort
   rsync_ssw_s   date +%Y_%m_%di
   s   .lsts#   rsync --archive --verbose --delete t   ws	   

 ===== s   

t    s   Results to s   No new documentation generateds   Generating new documentationt   idls   -quiets   run_ssw_smei.prot   done(    t   __doc__t   ost   syst   tinyR    t   __name__t   subdirst   patht   joint   environt   mirrort   smeit   argvt   nodoct   docdirt   spawnlpt   P_WAITt   stst   ranget   lent   it   dirnamet   popent   readt   filet   rsynct   opent   iut   writet   cmdt   closet   mkdir(    (    (    s   rsync_ssw.pys   <module>   sB   " !I  
		