Changeset 277
- Timestamp:
- 12/03/11 20:02:33 (13 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
SConstruct
r276 r277 9 9 libtalloc_path='.export/win32/libtalloc/' 10 10 11 latest_release='1.0.1' 11 12 source_targets=('src-trunk', 'src-0.99.0', 'src-1.0.0', 'src-1.0.1') 12 13 win32_targets=('win32-trunk', 'win32-0.99.0', 'win32-1.0.0', 'win32-1.0.1') … … 41 42 svn info svn+ssh://%(user)s@sentinelchicken.org/home/projects/subversion/reglookup\ 42 43 | grep "Last Changed Rev:" | cut -d' ' -f 4 \ 43 | sed 's/^/REGFI_VERSION=" svn-/' | sed 's/$/"/' > .export/%(path)s/regfi_version.py44 | sed 's/^/REGFI_VERSION="%(latest_release)s./' | sed 's/$/"/' > .export/%(path)s/regfi_version.py 44 45 ''' 45 46 … … 168 169 params = {'user':os.environ['USER'], 169 170 'path':version2input(version), 170 'version':version} 171 'version':version, 172 'latest_release':latest_release} 171 173 env.Execute(export_cmds % params) 172 174 if version == 'trunk': -
trunk/SConstruct
r273 r277 24 24 # Libraries 25 25 libregfi_static = env.Library(lib_src) 26 libregfi = env.SharedLibrary(lib_src, LIBS=['m','pthread', 'talloc']) 26 libregfi = env.SharedLibrary(lib_src, LIBS=['m','pthread', 'talloc'], 27 LINKFLAGS="-shared -fPIC -Wl,-soname,libregfi.so.%s" % REGFI_VERSION) 27 28 28 29 … … 46 47 47 48 # Installation 48 prefix='/usr/local/' 49 if 'PREFIX' in os.environ: 50 prefix = os.environ['PREFIX']+'/' 49 prefix = os.environ.get('PREFIX','/usr/local')+'/' 50 destdir = os.environ.get('DESTDIR','') 51 bindir = os.environ.get('BINDIR', prefix + 'bin') 52 libdir = os.environ.get('LIBDIR', prefix + 'lib') 53 includedir = os.environ.get('INCLUDEDIR', prefix + 'include') 54 mandir = os.environ.get('MANDIR', prefix + 'man') 51 55 52 install_items = [ prefix+'bin',53 prefix+'lib',54 prefix+'include/regfi',55 prefix+'man']56 install_items = [destdir + bindir, 57 destdir + libdir, 58 destdir + includedir + '/regfi', 59 destdir + mandir] 56 60 57 env.Install(prefix+'bin', [reglookup, reglookup_recover, 'bin/reglookup-timeline']) 58 libinstall = env.Install(prefix+'lib', [libregfi, libregfi_static]) 59 env.Install(prefix+'include/regfi', Glob('include/*.h')) 60 env.Install(prefix+'man/man1', [man_reglookup, man_reglookup_recover, 61 man_reglookup_timeline]) 62 env.AddPostAction(libinstall, 'ldconfig') 61 62 env.Install(destdir+bindir, [reglookup, reglookup_recover, 'bin/reglookup-timeline']) 63 libinstall = env.Install(destdir+libdir, [libregfi, libregfi_static]) 64 env.Install(destdir+includedir+'/regfi', Glob('include/*.h')) 65 env.Install(destdir+mandir+'/man1', [man_reglookup, man_reglookup_recover, 66 man_reglookup_timeline]) 67 if os.getuid() == 0: 68 env.AddPostAction(libinstall, 'ldconfig') 63 69 64 70 if sys.version_info[0] == 2: … … 67 73 'python/pyregfi/structures.py', 68 74 'python/pyregfi/winsec.py'], 69 "python pyregfi-distutils.py install | tee pyregfi2-install.log")75 "python pyregfi-distutils.py install --root=%s | tee pyregfi2-install.log" % destdir) 70 76 71 77 python_path = os.popen('which python3').read() … … 75 81 'python/pyregfi/structures.py', 76 82 'python/pyregfi/winsec.py'], 77 "python3 pyregfi-distutils.py install | tee pyregfi3-install.log")83 "python3 pyregfi-distutils.py install --root=%s | tee pyregfi3-install.log" % destdir) 78 84 79 85 # API documentation -
trunk/pyregfi-distutils.py
r256 r277 1 1 # Called from scons with appropriate python version 2 import sys 3 from distutils.core import setup 4 sys.dont_write_bytecode = True 5 from regfi_version import REGFI_VERSION 6 sys.dont_write_bytecode = False 2 7 3 from distutils.core import setup 4 setup(name='pyregfi', version='1.0', package_dir={'':'python'}, packages=['pyregfi']) 8 setup(name='pyregfi', version=REGFI_VERSION, package_dir={'':'python'}, packages=['pyregfi']) -
trunk/regfi_version.py
r232 r277 1 1 SVN_REV = "$Rev$" 2 REGFI_VERSION = " svn-%s" % SVN_REV.split(' ')[1]2 REGFI_VERSION = "99.99.99.%s" % SVN_REV.split(' ')[1]
Note: See TracChangeset
for help on using the changeset viewer.