write zip logs to correct folder
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4246 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
1817fc7bae
commit
50a77027d2
1 changed files with 6 additions and 4 deletions
|
@ -95,11 +95,11 @@ def log(msg):
|
||||||
def exit():
|
def exit():
|
||||||
log('\nerror occured, exiting')
|
log('\nerror occured, exiting')
|
||||||
|
|
||||||
def run(command, log_name, err, wanted_ret = 0):
|
def run(command, log_name, err, wanted_ret = 0, log_dir = '.'):
|
||||||
log('running %s' % command)
|
log('running %s' % command)
|
||||||
|
|
||||||
if log_name:
|
if log_name:
|
||||||
cmd = '%s >> release.log 2>&1' % (command, log)
|
cmd = '%s >> %s\\release.log 2>&1' % (command, log_dir)
|
||||||
else:
|
else:
|
||||||
cmd = command
|
cmd = command
|
||||||
|
|
||||||
|
@ -266,14 +266,16 @@ def create_special_build(name, option):
|
||||||
run(
|
run(
|
||||||
scons_line + 'PREFIX=%s\\%s %s install-compiler install-stubs' % (os.getcwd(), name, option),
|
scons_line + 'PREFIX=%s\\%s %s install-compiler install-stubs' % (os.getcwd(), name, option),
|
||||||
name,
|
name,
|
||||||
'creation of %s special build failed' % name
|
'creation of %s special build failed' % name,
|
||||||
|
log_dir = '..'
|
||||||
)
|
)
|
||||||
|
|
||||||
os.chdir(name)
|
os.chdir(name)
|
||||||
run(
|
run(
|
||||||
ZIP % ('..\\nsis-%s-%s.zip' % (VERSION, name), '*'),
|
ZIP % ('..\\nsis-%s-%s.zip' % (VERSION, name), '*'),
|
||||||
'%s.zip' % name,
|
'%s.zip' % name,
|
||||||
'copmression of %s special build failed' % name
|
'copmression of %s special build failed' % name,
|
||||||
|
log_dir = '..'
|
||||||
)
|
)
|
||||||
os.chdir('..')
|
os.chdir('..')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue