waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

waf-zip (1772B)


      1 #!/usr/bin/env python
      2 # encoding: latin-1
      3 # Thomas Nagy, 2005-2011
      4 
      5 """
      6 Redistribution and use in source and binary forms, with or without
      7 modification, are permitted provided that the following conditions
      8 are met:
      9 
     10 1. Redistributions of source code must retain the above copyright
     11    notice, this list of conditions and the following disclaimer.
     12 
     13 2. Redistributions in binary form must reproduce the above copyright
     14    notice, this list of conditions and the following disclaimer in the
     15    documentation and/or other materials provided with the distribution.
     16 
     17 3. The name of the author may not be used to endorse or promote products
     18    derived from this software without specific prior written permission.
     19 
     20 THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
     21 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     22 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     23 DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
     24 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     25 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
     26 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     27 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
     28 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
     29 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     30 POSSIBILITY OF SUCH DAMAGE.
     31 """
     32 
     33 import os, sys
     34 
     35 if sys.hexversion<0x206000f:
     36 	raise ImportError('Python >= 2.6 is required to run waf-zip')
     37 
     38 wafzip = os.path.join(os.path.dirname(sys.argv[0]), "waflib.zip")
     39 sys.path.insert(0, wafzip)
     40 
     41 from waflib import Context
     42 
     43 if __name__ == '__main__':
     44 	from waflib import Scripting
     45 	Scripting.waf_entry_point(os.getcwd(), Context.WAFVERSION, wafzip)
     46