Author: sebastien.lelong
Date: Sat Nov 15 09:46:01 2008
New Revision: 559

Removed:
    trunk/tools/jsg_validator.py
Modified:
    trunk/tools/jallib.py

Log:
checks either BSD or ZLIB license in headers + delete deprecated  
jsg_validator.py script

Modified: trunk/tools/jallib.py
==============================================================================
--- trunk/tools/jallib.py       (original)
+++ trunk/tools/jallib.py       Sat Nov 15 09:46:01 2008
@@ -215,6 +215,7 @@

  JALLIB = """^-- This file is part of  
jallib\s+\(http://jallib.googlecode.com\)"""
  LICENSE = """^-- Released under the BSD  
license\s+\(http://www.opensource.org/licenses/bsd-license.php\)"""
+LICENSE2 = """^-- Released under the ZLIB  
license\s+\(http://www.opensource.org/licenses/zlib-license.html\)"""

  # exceptions while checking case
  ALLOWED_MIXED_CASE = """.*(pin|port|tris|option|ancon).*"""
@@ -306,11 +307,11 @@
                if re.match(JALLIB,line):
                        jallib = True
                        if license: break
-               if re.match(LICENSE,line):
+               if re.match(LICENSE,line) or re.match(LICENSE2,line):
                        license = True
                        if jallib: break
        not jallib and errors.append("Cannot find references to jallib (should  
have: %s)" % repr(JALLIB))
-       not license and errors.append("Cannot find references to license 
(should  
have: %s)" % repr(LICENSE))
+       not license and errors.append("Cannot find references to license")
        for field_dict in FIELDS:
                validate_field(header,**field_dict)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to