Changeset 189
- Timestamp:
- 04/24/10 00:49:10 (15 years ago)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
SConstruct
r188 r189 1 1 2 build_cmds=''' 2 3 rm -rf .release; 3 mkdir -p `dirname .release/$SOURCE`; 4 svn export svn+ssh://sentinelchicken.org/home/projects/subversion/reglookup/$SOURCE .release/$SOURCE; 4 svn export svn+ssh://sentinelchicken.org/home/projects/subversion/reglookup/$SOURCE .release/%s; 5 5 #XXX: Can this be less of a hack? 6 cd .release/ $SOURCE && scons doc && cd ..;7 cd .release && tar cf $SOURCE.tar $SOURCE && gzip -9 $SOURCE.tar;8 mv .release/ $SOURCE.tar.gz ..6 cd .release/%s && scons doc 7 cd .release && tar cf %s.tar %s && gzip -9 %s.tar; 8 mv .release/%s.tar.gz . && rm -rf .release 9 9 ''' 10 release_builder = Builder(action=build_cmds) 10 11 buildable_files=('reglookup-trunk.tar.gz',) 12 13 def generate_cmds(source, target, env, for_signature): 14 ret_val = '' 15 for t in target: 16 if str(t) in buildable_files: 17 t_base = str(t).split('.')[0] 18 ret_val += build_cmds % (t_base,t_base,t_base, 19 t_base,t_base,t_base) 20 else: 21 return '#ERROR: cannot build "%s". Acceptable targets: %s' % (t, repr(buildable_files)) 22 23 return ret_val 24 25 26 release_builder = Builder(generator = generate_cmds, 27 suffix = '.tar.gz', 28 src_suffix = '', 29 prefix='reglookup-') 11 30 12 31 env = Environment() … … 14 33 15 34 16 env.Release('trunk') 17 18 19 35 env.Release(Dir('trunk')) 36 #env.Release('reglookup-0.13.0.tar.gz', Dir('releases/0.13.0')) 20 37 21 38 Default(None) -
doc/TODO
r164 r189 27 27 everything. I'd like to switch to a suite of shell scripts driven by 28 28 minimal make rules. If you got any ideas on this, shoot them my way. 29 scons? 29 30 30 31 - Unicode support still needs improvement. While parsing strings seems … … 39 40 lower-level functions of regfi.c. 40 41 41 - The smb_deps.h and smb_deps.c content is almost eliminated. Just need42 to integrate parts that are being kept into regfi or other modules.43 44 42 - Consider switching from libiconv to Joachim Metz's libuna for 45 43 increased portability and easier builds. -
trunk/SConstruct
r187 r189 2 2 cflags = '-std=gnu99 -pedantic -Wall -ggdb' 3 3 4 if True:4 if False: 5 5 libiconv_path='/usr/local/src/libiconv-1.13-mingw32-dev' 6 6 env = Environment(CC='i586-mingw32msvc-cc', … … 29 29 libregfi = env.SharedLibrary(lib_src, LIBS=['m','pthread']) 30 30 31 31 32 # Executables 32 33 reglookup = env.Program('src/reglookup.c') 33 34 reglookup_recover = env.Program('src/reglookup-recover.c') 35 34 36 35 37 # Documentation … … 39 41 + man_fixup + '| gzip -9 > $TARGET', 40 42 suffix = '.gz', 41 src_suffix = '.docbook', 42 prefix='man/man1/') # XXX: only works for .1.docbook files... 43 src_suffix = '.docbook') 43 44 env['BUILDERS']['ManPage'] = man_builder 44 45 … … 46 47 man_reglookup_recover = env.ManPage('doc/reglookup-recover.1.docbook') 47 48 man_reglookup_timeline = env.ManPage('doc/reglookup-timeline.1.docbook') 49 50 51 # Installation 52 prefix='/usr/local/' 53 54 # XXX: need to install reglookup-timeline 55 env.Install(prefix+'bin', [reglookup, reglookup_recover, 'bin/reglookup-timeline']) 56 env.Install(prefix+'lib', [libregfi, libregfi_static]) 57 env.Install(prefix+'man/man1', [man_reglookup, man_reglookup_recover, 58 man_reglookup_timeline]) 59 48 60 49 61 # User Friendly Targets … … 53 65 env.Alias('bin', [reglookup_recover, reglookup]) 54 66 env.Alias('doc', [man_reglookup,man_reglookup_recover,man_reglookup_timeline]) 67 env.Alias('install', [prefix+'bin', prefix+'lib', prefix+'man']) 55 68 56 69 Default('bin', libregfi)
Note: See TracChangeset
for help on using the changeset viewer.