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]
|
[wiki]
|
||||||
UPDATE_URL=http://nsis.sourceforge.net/Special:Simpleupdate?action=raw
|
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:
|
7zatarbz2.bat:
|
||||||
|
@ -82,6 +87,10 @@ RSH = cfg.get('rsh', 'RSH')
|
||||||
PURGE_URL = cfg.get('wiki', 'PURGE_URL')
|
PURGE_URL = cfg.get('wiki', 'PURGE_URL')
|
||||||
UPDATE_URL = cfg.get('wiki', 'UPDATE_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
|
### config env
|
||||||
|
|
||||||
os.environ['CVS_EXT'] = CVS_EXT
|
os.environ['CVS_EXT'] = CVS_EXT
|
||||||
|
@ -220,6 +229,32 @@ def Export():
|
||||||
'export failed'
|
'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():
|
def CreateSourceTarball():
|
||||||
print 'creating source tarball...'
|
print 'creating source tarball...'
|
||||||
|
|
||||||
|
@ -342,6 +377,7 @@ CommitMenuImage()
|
||||||
TestInstaller()
|
TestInstaller()
|
||||||
Tag()
|
Tag()
|
||||||
Export()
|
Export()
|
||||||
|
CreateChangeLog()
|
||||||
CreateSourceTarball()
|
CreateSourceTarball()
|
||||||
BuildRelease()
|
BuildRelease()
|
||||||
CreateSpecialBuilds()
|
CreateSpecialBuilds()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue