
    r@;j              	          d dl Z d dlZd dlZd dlZd dlZd dlZ	 	 	 ddZd Zedk    rAd dl Z 	  e j         ej	        dd         d          \  Z
Zn"# e j        $ rZ ee           Y dZ[ndZ[ww xY wd xZZg ZdZe
D ]S\  ZZedk    rdZedk    r0e                    d	d
          \  ZZe                    eef           edk    reZedk    rdZT ee          dk     r ed           ded          z   Zed         Zej                            e          s ede d           ed
         Zej                            e          s ede d            eeeeeeee           dS dS )    Nc                     t          j        |          }t          j        | |||          }|t	          d           d S t          j        |||           |D ]\  }	}
t          j        | |	|
           dS )N	Cancelled   )win32apiGetFullPathNamevssutilMakeNewBuildNoprint	bulkstampscanSubstituteVSSInFile)vssProjectNamedescFile	stampPathfilesToSubstitute	buildDescautobRebrandpathbuildinfileoutfiles              uC:\Users\Administrator\AppData\Local\Temp\2\pip-target-b0z114gj\lib\python\win32/scripts/VersionStamp/BrandProject.pyBrandProjectr      s     #I..D">9dHMME}kN5)X..., E E#NFGDDDD1    c                 *   t          |            t          t          j                            t          j        d                    dt          j                            t          j        d                    d           t	          j        d           d S )Nr   z Usage:
a   [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.
r   )r
   osr   basenamesysargvexit)msgs    r   usager#   (   s}    	#JJJ	#(1+	 	#(1+	 	 	  ( HQKKKKKr   __main__r   zaf:d:rz-az-f=   z-dz-r   z'You must specify the required argumentsz$\zThe description file 'z' can not be foundz The path to the files to stamp 'z' does not exist)Nr   r   )getoptr   r   r   r   r   r   r#   __name__r    optsargsGetoptErrorr"   bAutor   
stampFilesdescoptvalsplitr   r   appendlenr   r   r   existsisdir r   r   <module>r8      sA    				 



       	
   2  2 zMMM"V]38ABB<::
dd   c







EHJD 	 	S$;;E$;;!iiQ//OFGvw/000$;;D$;;H
s4yy1}}7888T!W_NAwH7>>(## ECxCCCDDD7D7== IGGGGHHHL4T5(SSSSS= s   !A 
A0A++A0