1 --- SConstruct.old 2011-05-09 02:49:06.986670742 +0200
2 +++ SConstruct 2011-05-09 02:50:01.947173125 +0200
5 # This only needs to be run during the release/packaging process
6 man_fixup = "|sed 's/.SH DESCRIPTION/\\n.SH DESCRIPTION/'"
7 -man_builder = Builder(action='docbook2x-man --to-stdout $SOURCE'
8 +man_builder = Builder(action='docbook2man --to-stdout $SOURCE'
9 + man_fixup + '| gzip -9 > $TARGET',
11 src_suffix = '.docbook')
13 man_reglookup_timeline = env.ManPage('doc/reglookup-timeline.1.docbook')
17 +if 'PREFIX' in os.environ:
18 + prefix = os.environ['PREFIX']
20 + prefix = '/usr/local/'
21 install_items = [prefix+'bin',
23 prefix+'include/regfi',
25 if sys.version_info[0] == 2:
26 install_items.append('pyregfi2-install.log')
27 env.Command('pyregfi2-install.log', ['python/pyregfi/__init__.py', 'python/pyregfi/structures.py'],
28 - "python pyregfi-distutils.py install | tee pyregfi2-install.log")
29 + "PREFIX='" + prefix + "' python pyregfi-distutils.py install | tee pyregfi2-install.log")
31 python_path = os.popen('which python3').read()
33 install_items.append('pyregfi3-install.log')
34 env.Command('pyregfi3-install.log', ['python/pyregfi/__init__.py', 'python/pyregfi/structures.py'],
35 - "python3 pyregfi-distutils.py install | tee pyregfi3-install.log")
36 + "PREFIX='" + prefix + "' python3 pyregfi-distutils.py install | tee pyregfi3-install.log")
39 regfi_doc = env.Command('doc/devel/regfi/index.html',