From 9a0e3f1d7e10a0aa3f699587d451e3c22828485c Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Tue, 28 Sep 2010 02:49:25 +0200 Subject: RED-553: SNOW-766: Add a 'printbuilddirs' command to develop.py See http://redmine.imprudenceviewer.org/issues/553 --- linden/indra/develop.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'linden/indra') diff --git a/linden/indra/develop.py b/linden/indra/develop.py index 4e16885..809ac78 100755 --- a/linden/indra/develop.py +++ b/linden/indra/develop.py @@ -706,9 +706,10 @@ Options: -p | --project=NAME set the root project name. (Doesn't effect makefiles) Commands: - build configure and build default target - clean delete all build directories, does not affect sources - configure configure project by running cmake (default command if none given) + build configure and build default target + clean delete all build directories, does not affect sources + configure configure project by running cmake (default if none given) + printbuilddirs print the build directory that will be used Command-options for "configure": We use cmake variables to change the build configuration. @@ -788,6 +789,9 @@ For example: develop.py configure -DSERVER:BOOL=OFF""" if args: raise CommandError('clean takes no arguments') setup.cleanup() + elif cmd == 'printbuilddirs': + for d in setup.build_dirs(): + print >> sys.stdout, d else: print >> sys.stderr, 'Error: unknown subcommand', repr(cmd) print >> sys.stderr, "(run 'develop.py --help' for help)" -- cgit v1.1