- Timestamp:
- 11/13/11 22:45:56 (19 months ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- 16198e3
- Parents:
- b24c97f
- Location:
- build/python
- Files:
-
- 2 edited
-
config.py (modified) (2 diffs)
-
postbuild.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
build/python/config.py
r04ef932 rd48afa1 1 1 2 2 BREAKPAD_FOUND = "${BREAKPAD_FOUND}" 3 BREAKPAD_FOUND = "FALSE"4 3 BREAKPAD_DUMPSYMS_EXE = "${BREAKPAD_DUMPSYMS_EXE}" 5 4 BUILD_TARGET_EXE_PATH = "${BUILD_TARGET_EXE_PATH}" … … 10 9 VERSION_TXT = "${VERSION_TXT}" 11 10 VERSION_ARCH = "${VERSION_ARCH}" 11 TARGET_SITE = "${TARGET_SITE}" 12 SCP_BINARY = 'c:\Progra~2\PuTTY\pscp.exe' # ${PSCP_EXE} 12 13 14 if CMAKE_CL_64 != "0": # Due to bug in x64 dump_symbols (or possible windows API) 15 BREAKPAD_FOUND = "FALSE" -
build/python/postbuild.py
r04ef932 rd48afa1 16 16 vstring = version.version() 17 17 18 def scp_file(file): 19 tfile = os.path.basename(file) 20 (name, version, arch) = tfile.split('-') 21 target = None 22 if '_' in name: 23 (name, tag) = name.split('_') 24 if globals().has_key('TARGET_SITE_%s'%tag): 25 target = globals().get('TARGET_SITE_%s'%tag) 26 print 'Found tagged installer %s for %s'%(tfile, tag) 27 else: 28 print 'Ignoring unconfigured tagged installer: %s (define TARGET_SITE_%s to a destination)'%(tag,tag) 29 else: 30 print 'Found normal installer %s'%tfile 31 target = TARGET_SITE 32 if target: 33 print 'Uploading name: %s to %s'%(tfile, target) 34 os.system("%s %s %s"%(SCP_BINARY, file, target)) 35 18 36 def rename_and_move(file, target): 19 37 tfile = '%s/%s'%(target, os.path.basename(file)) … … 30 48 return matches 31 49 32 target_name = 'NSCP-%s-%s -symbols.zip'%(VERSION, VERSION_ARCH)50 target_name = 'NSCP-%s-%s_symbols.zip'%(vstring, VERSION_ARCH) 33 51 34 if BREAKPAD_FOUND == "TRUE ee":52 if BREAKPAD_FOUND == "TRUE": 35 53 print "Gathering symbols into %s"%target_name 36 54 matches = find_by_pattern(BUILD_TARGET_EXE_PATH, '*.pdb') 37 zip = zipfile.ZipFile(target_name, "w")55 zip = zipfile.ZipFile(target_name, 'w', zipfile.ZIP_DEFLATED) 38 56 for f in matches: 39 57 print "Processing: %s"%f … … 62 80 for f in find_by_pattern(BUILD_TARGET_EXE_PATH, '*%s*.zip'%vstring): 63 81 rename_and_move(f, target_archives) 64 65 82 83 try: 84 if TARGET_SITE != '' and SCP_BINARY != '': 85 print "Distributing files to site..." 86 87 for f in find_by_pattern(BUILD_TARGET_EXE_PATH, '*%s*.msi'%vstring): 88 scp_file(f) 89 for f in find_by_pattern(BUILD_TARGET_EXE_PATH, '*%s*.zip'%vstring): 90 scp_file(f) 91 except NameError: 92 print 'TARGET_SITE not defined so we wont upload anything...'
Note: See TracChangeset
for help on using the changeset viewer.








