mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
build.py fix: --exclude command line arg wasn't correctly evaluated
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
fc24199e2e
commit
50fc9201a4
1 changed files with 4 additions and 6 deletions
|
|
@ -123,11 +123,9 @@ def build(modules, order, target):
|
||||||
run_make(m, target)
|
run_make(m, target)
|
||||||
|
|
||||||
# -- parse command line
|
# -- parse command line
|
||||||
modules = Set()
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='jannet software project build tool')
|
parser = argparse.ArgumentParser(description='jannet software project build tool')
|
||||||
parser.add_argument('--base', '-b', nargs='?', default=proj_base, help='Project base directory')
|
parser.add_argument('--base', '-b', nargs='?', default=proj_base, help='Project base directory')
|
||||||
parser.add_argument('--exclude', nargs='?', default='', help='List of modules to be excluded from build')
|
parser.add_argument('--exclude', default='', help='Space seperated ist of modules to be excluded from build')
|
||||||
parser.add_argument('--debug', '-d', action='store_true',
|
parser.add_argument('--debug', '-d', action='store_true',
|
||||||
default=False, help='Output debug information to stderr')
|
default=False, help='Output debug information to stderr')
|
||||||
parser.add_argument('target', default='all', help='Build target')
|
parser.add_argument('target', default='all', help='Build target')
|
||||||
|
|
@ -137,10 +135,10 @@ args=parser.parse_args()
|
||||||
|
|
||||||
debug("----------------------------------------- running ", ' '.join(sys.argv))
|
debug("----------------------------------------- running ", ' '.join(sys.argv))
|
||||||
|
|
||||||
proj_base=args.base
|
|
||||||
exclude=args.exclude
|
|
||||||
target=args.target
|
|
||||||
modules=args.modules
|
modules=args.modules
|
||||||
|
exclude=args.exclude.split()
|
||||||
|
proj_base=args.base
|
||||||
|
target=args.target
|
||||||
|
|
||||||
env_exclude=os.getenv('BUILD_EXCLUDE', '')
|
env_exclude=os.getenv('BUILD_EXCLUDE', '')
|
||||||
if len(env_exclude):
|
if len(env_exclude):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue