From 8c04e65bb614c7b8a0b1443fa7322c333451b138 Mon Sep 17 00:00:00 2001 From: kichik Date: Sun, 18 Mar 2007 19:23:49 +0000 Subject: [PATCH] couple of fixes to make cvs2cl.pl run (but not work yet( git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5001 212acab6-be3b-0410-9dea-997c60f758d6 --- Scripts/release.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Scripts/release.py b/Scripts/release.py index 0fcf11f7..3f16a456 100644 --- a/Scripts/release.py +++ b/Scripts/release.py @@ -32,7 +32,7 @@ UPDATE_URL=http://nsis.sourceforge.net/Special:Simpleupdate?action=raw [cvs2cl] CVS2CL=cvs2cl.pl -CVS2CL_PERL="C:\Program Files\Perl\perl.exe" +CVS2CL_PERL="C:\Program Files\Perl\bin\perl.exe" CVS2CL_OPTS=--FSF ========================= @@ -231,20 +231,16 @@ def Export(): def CreateChangeLog(): print 'generating ChangeLog...' - - # Assumes we are running in the Scripts directory - curdir = os.getcwd() - os.chdir('..') - + global CVS2CL if not os.path.isfile(CVS2CL): import urllib CVS2CL = urllib.urlretrieve('http://www.red-bean.com/cvs2cl/cvs2cl.pl','cvs2cl.pl')[0] - changelog = os.path.join('Scripts',newverdir,'ChangeLog') + changelog = os.path.join(newverdir,'ChangeLog') run( - '%s %s %s --show-tag %s --file %s' % (CVS2CL_PERL, CVS2CL, CVS2CL_OPTS, CVS_TAG, changelog), + '%s -x %s %s --show-tag %s --file %s ..' % (CVS2CL_PERL, CVS2CL, CVS2CL_OPTS, CVS_TAG, changelog), 'changelog', 'changelog failed' ) @@ -253,8 +249,6 @@ def CreateChangeLog(): try: os.remove(changelog+'.bak') except: pass - os.chdir(curdir) - def CreateSourceTarball(): print 'creating source tarball...'