Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar-jhbuild
blob: f98a6b19cb33e567ce3700d46607ddab1b183c1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python

import os
import sys
import subprocess

base_dir = os.path.abspath(os.path.dirname(__file__))
sys.path.append(os.path.join(base_dir, 'build-scripts', 'jhbuild'))

# The update needs to be very early, before we load any module
if len(sys.argv) > 0 and sys.argv[1] == 'build':
    print 'Updating sugar-jhbuild...'
    retcode = subprocess.call(['git', 'pull'])
    if retcode:
        print 'sugar-jhbuild update failed.'

import main

main.main(sys.argv[1:])