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:
kichik 2005-09-08 19:15:56 +00:00
parent 1817fc7bae
commit 50a77027d2

View file

@ -95,11 +95,11 @@ def log(msg):
def exit():
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)
if log_name:
cmd = '%s >> release.log 2>&1' % (command, log)
cmd = '%s >> %s\\release.log 2>&1' % (command, log_dir)
else:
cmd = command
@ -266,14 +266,16 @@ def create_special_build(name, option):
run(
scons_line + 'PREFIX=%s\\%s %s install-compiler install-stubs' % (os.getcwd(), name, option),
name,
'creation of %s special build failed' % name
'creation of %s special build failed' % name,
log_dir = '..'
)
os.chdir(name)
run(
ZIP % ('..\\nsis-%s-%s.zip' % (VERSION, name), '*'),
'%s.zip' % name,
'copmression of %s special build failed' % name
'copmression of %s special build failed' % name,
log_dir = '..'
)
os.chdir('..')