Added commit message menu, other fixes
[ugit.git] / wscript
blobefe164de69e7ba89e0085ccb3933d689bfdc597d
1 #!/usr/bin/env python
2 import os
3 import glob
4 import buildutils
5 import Common
7 APPNAME = 'ugit'
8 VERSION = '0.5.0'
10 # Mandatory variables
11 srcdir = '.'
12 blddir = 'build'
14 # Options
15 def set_options(opt):
16 opt.tool_options('python')
17 opt.tool_options('pyuic4', 'buildutils')
18 pass
20 # Configure
21 def configure(conf):
22 env = conf.env
23 env['PYMODS'] = buildutils.pymod(env['PREFIX'])
24 env['PYMODS_UGIT'] = os.path.join(env['PYMODS'], 'ugitlibs')
25 env['ICONS'] = os.path.join(env['PYMODS_UGIT'], 'icons')
26 env['BIN'] = os.path.join(env['PREFIX'], 'bin')
28 buildutils.configure_python(conf)
29 buildutils.configure_pyqt(conf)
31 # Build
32 def build(bld):
33 bld.add_subdirs('ui ugitlibs')
35 bin = bld.create_obj('py')
36 bin.inst_var = 'BIN'
37 bin.chmod = 0755
38 bin.find_sources_in_dirs('bin')
40 for icon in glob.glob('icons/*.png'):
41 Common.install_files('ICONS', '', icon)
43 Common.symlink_as('BIN', 'ugit.py', 'ugit')