Ñò
b¾Æ8c           @   s6  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 d d „ Z d „  Z e	 d j oÂy/ d  d k
 Z
 e
 i
 e i d d ƒ \ Z Z Wn" e i j
 o Z e e ƒ n Xd Z Z g  Z d Z x˜ e D] \ Z Z e d j o
 d Z n e d	 j o2 e i e d
 d ƒ \ Z Z e i e e f ƒ n e d j o
 e Z n e d j o
 d Z qá qá We e ƒ d j  o e d ƒ n d e d Z e d Z e d Z y e i e ƒ Wn! e  j
 o e d e ƒ n Xe i i! e ƒ p e d e ƒ n e e e e e e e e ƒ n d S(   iÿÿÿÿNi    c         C   s|   t  i | ƒ } t i |  | | | ƒ } | d  j o
 d GHd  St i | | | ƒ x$ | D] \ }	 }
 t |  |	 |
 ƒ qX Wd S(   Nt	   Cancelledi   (   t   win32apit   GetFullPathNamet   vssutilt   MakeNewBuildNot   Nonet	   bulkstampt   scant   SubstituteVSSInFile(   t   vssProjectNamet   descFilet	   stampPatht   filesToSubstitutet	   buildDesct   autot   bRebrandt   patht   buildt   infilet   outfile(    (    sW   C:\graphics\Tools\Python26\Lib\site-packages\win32\scripts\VersionStamp\BrandProject.pyt   BrandProject   s     c         C   sK   |  GHd t  i i t i d ƒ t  i i t i d ƒ f GHt i d ƒ d  S(   Ns¢  %s Usage:
%s [options] vssProject descFile stampPath

Automatically brand a VSS project with an automatically incremented
build number, and stamp DLL/EXE files with the build number.

Checks that no files are checked out in the project, and finds the last
build number, and suggests the next number.

Options:
-a     - Auto increment the build number, and brand (otherwise prompt
         for the build number after looking for the previous)
-r     - Restamp the files with the existing build number.
-d     - A description for the VSS Label.
-f infile=outfile - Substitute special VSS labels in the specified text
                    file with the text extracted from VSS.
i    i   (   t   osR   t   basenamet   syst   argvt   exit(   t   msg(    (    sW   C:\graphics\Tools\Python26\Lib\site-packages\win32\scripts\VersionStamp\BrandProject.pyt   usage   s    5t   __main__i   s   af:d:rs   -as   -ft   =i   s   -ds   -ri   s'   You must specify the required argumentss   $\s*   The description file '%s' can not be founds2   The path to the files to stamp '%s' does not exist("   R   R   t   stringR   R   R   R   R   R   t   __name__t   getoptR   t   optst   argst   getoptst   errorR   t   bAutoR   t
   stampFilest   desct   optt   valt   splitR   R   t   appendt   lenR	   R
   R   t   statt   IOErrort   isdir(    (    (    sW   C:\graphics\Tools\Python26\Lib\site-packages\win32\scripts\VersionStamp\BrandProject.pyt   <module>   sH   0	#
 



