Revision: 1540
Author: sebastien.lelong
Date: Tue Dec 15 11:38:40 2009
Log: fix nasty indentation and fix the way directories are explored when
passing two roots with JALLIB_REPOS env. variable
http://code.google.com/p/jallib/source/detail?r=1540
Modified:
/trunk/tools/jallib.py
=======================================
--- /trunk/tools/jallib.py Sun Nov 1 02:06:03 2009
+++ /trunk/tools/jallib.py Tue Dec 15 11:38:40 2009
@@ -177,10 +177,9 @@
jalv2_exec = None
- dirs = None
+ dirs = []
for o,v in opts:
if o == '-R':
- dirs = []
gdirs = v.split(";")
for d in gdirs:
dirs.extend(_explore_dir(d))
@@ -191,17 +190,18 @@
# No root specified ? Try env var, else defaut to cwd
if not dirs:
try:
- gdirs = os.environ['JALLIB_REPOS'].split(":")
+ 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)
+ dirs.extend(_explore_dir(d))
# No exec specify, try env var or defaulting
if not jalv2_exec:
jalv2_exec = os.environ.get('JALLIB_JALV2','jalv2').split()
cmd = jalv2_exec + ["-s",";".join(dirs)]
+ print cmd
# Complete with compiler args
if args:
cmd.extend(args)
--
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.