applied patch #1680508 - generate a ChangeLog at release time
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4998 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
988c973576
commit
6842d80d30
1 changed files with 36 additions and 0 deletions
|
@ -29,6 +29,11 @@ RSH="C:\Program Files\PuTTY\plink.exe" -2 -l kichik nsis.sourceforge.net
|
|||
|
||||
[wiki]
|
||||
UPDATE_URL=http://nsis.sourceforge.net/Special:Simpleupdate?action=raw
|
||||
|
||||
[cvs2cl]
|
||||
CVS2CL=cvs2cl.pl
|
||||
CVS2CL_PERL="C:\Program Files\Perl\perl.exe"
|
||||
CVS2CL_OPTS=--FSF
|
||||
=========================
|
||||
|
||||
7zatarbz2.bat:
|
||||
|
@ -82,6 +87,10 @@ RSH = cfg.get('rsh', 'RSH')
|
|||
PURGE_URL = cfg.get('wiki', 'PURGE_URL')
|
||||
UPDATE_URL = cfg.get('wiki', 'UPDATE_URL')
|
||||
|
||||
CVS2CL = cfg.get('cvs2cl', 'CVS2CL')
|
||||
CVS2CL_PERL = cfg.get('cvs2cl', 'CVS2CL_PERL')
|
||||
CVS2CL_OPTS = cfg.get('cvs2cl', 'CVS2CL_OPTS')
|
||||
|
||||
### config env
|
||||
|
||||
os.environ['CVS_EXT'] = CVS_EXT
|
||||
|
@ -220,6 +229,32 @@ def Export():
|
|||
'export failed'
|
||||
)
|
||||
|
||||
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')
|
||||
|
||||
run(
|
||||
'%s %s %s --show-tag %s --file %s' % (CVS2CL_PERL, CVS2CL, CVS2CL_OPTS, CVS_TAG, changelog),
|
||||
'changelog',
|
||||
'changelog failed'
|
||||
)
|
||||
|
||||
# Just in case the script is run twice or something
|
||||
try: os.remove(changelog+'.bak')
|
||||
except: pass
|
||||
|
||||
os.chdir(curdir)
|
||||
|
||||
def CreateSourceTarball():
|
||||
print 'creating source tarball...'
|
||||
|
||||
|
@ -342,6 +377,7 @@ CommitMenuImage()
|
|||
TestInstaller()
|
||||
Tag()
|
||||
Export()
|
||||
CreateChangeLog()
|
||||
CreateSourceTarball()
|
||||
BuildRelease()
|
||||
CreateSpecialBuilds()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue