From 50a77027d2896b3b1bc5aea61e57e2c770b5f6b4 Mon Sep 17 00:00:00 2001 From: kichik Date: Thu, 8 Sep 2005 19:15:56 +0000 Subject: [PATCH] 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 --- Scripts/release.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Scripts/release.py b/Scripts/release.py index 557a7576..dc7e0c8b 100644 --- a/Scripts/release.py +++ b/Scripts/release.py @@ -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('..')