Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar-jhbuild
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-01-26 14:23:21 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-01-26 14:23:21 (GMT)
commit110a8ef3e260d360b333e9e8f1562affdd864515 (patch)
treefa76cc42c2e7acede4dca5c501952eb14267af7d /sugar-jhbuild
parenta5a9c0fb4f20eaae3c43b586170a805cf42567de (diff)
Copy some code from jhbuild so that we display help and support all the options.
Diffstat (limited to 'sugar-jhbuild')
-rwxr-xr-xsugar-jhbuild30
1 files changed, 2 insertions, 28 deletions
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:])