Revision: 1383
Author: sebastien.lelong
Date: Sat Oct 10 02:11:07 2009
Log: split JALLIB_REPOS env var with ":" (linux convention), but split  
JALLIB_REPOS from commandline parameter with ";" (jalv2 compiler  
convention). Also make jallib.py compatible with Jaluino headers
http://code.google.com/p/jallib/source/detail?r=1383

Modified:
  /trunk/tools/jallib.py

=======================================
--- /trunk/tools/jallib.py      Thu Oct  8 00:55:26 2009
+++ /trunk/tools/jallib.py      Sat Oct 10 02:11:07 2009
@@ -190,8 +190,12 @@
              print >> sys.stderr, "Wrong option %s" % o
      # No root specified ? Try env var, else defaut to cwd
      if not dirs:
-        v = os.environ.get('JALLIB_REPOS',os.path.curdir)
-        gdirs = v.split(";")
+        try:
+                   gdirs = os.environ['JALLIB_REPOS'].split(":")
+        except KeyError:
+            # no such env var, takes param from commandline, and honor
+            # jalv2 compiler separator
+            gdirs = os.path.curdir.split(";")
          for d in gdirs:
              dirs = _explore_dir(d)
      # No exec specify, try env var or defaulting
@@ -229,7 +233,7 @@
  def compiler_version(val):
      return re.match("^(>|<|>=|<=|=)?\d+(\.\d+\w*)+\s+$",val)

-JALLIB = """^-- This file is part of  
jallib\s+\(http://jallib.googlecode.com\)"""
+JALLIB = """^-- This file is part of (jallib|jaluino)\s+\(http://(jallib| 
jaluino).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\)"""


--~--~---------~--~----~------------~-------~--~----~
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