From 110a8ef3e260d360b333e9e8f1562affdd864515 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 26 Jan 2007 14:23:21 +0000 Subject: Copy some code from jhbuild so that we display help and support all the options. --- (limited to 'sugar-jhbuild') diff --git a/sugar-jhbuild b/sugar-jhbuild index ad084e3..99fa61a 100755 --- a/sugar-jhbuild +++ b/sugar-jhbuild @@ -6,32 +6,6 @@ import sys base_dir = os.path.abspath(os.path.dirname(__file__)) sys.path.append(os.path.join(base_dir, 'build-scripts', 'jhbuild')) -import jhbuild.commands +import main -import bundlemodule -import mozillamodule -import sanitycheck - -from config import Config - -config = Config(base_dir) - -args = [] -command = 'build' - -if len(sys.argv) > 0: - command = sys.argv[1] - -if len(sys.argv) > 1: - args = sys.argv[2:] - -if command == 'build': - print 'Checking dependencies...' - jhbuild.commands.run('sanitycheck', config, []) -elif command == 'build-base': - command = 'build' - args.append('meta-sugar-base') -elif command == 'run' and len(args) == 0: - args.append('sugar-emulator') - -jhbuild.commands.run(command, config, args) +main.main(sys.argv[1:]) -- cgit v0.9.1