Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar-jhbuild
blob: 5cd450cbb294f0ae96e4d51cd4ffa02331a2ab93 (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) == 1 or (len(sys.argv) > 1 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:])