Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar-jhbuild
blob: ad084e3809922b09528ffe5c45672be233dfced0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python

import os
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 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)