better ChangeLog with some MSXML fun (thanks orip!)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5333 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
426327f7f9
commit
ddff4f3946
2 changed files with 482 additions and 1 deletions
|
@ -29,6 +29,9 @@ RSH="C:\Program Files\PuTTY\plink.exe" -2 -l kichik nsis.sourceforge.net
|
|||
|
||||
[wiki]
|
||||
UPDATE_URL=http://nsis.sourceforge.net/Special:Simpleupdate?action=raw
|
||||
|
||||
[svn2cl]
|
||||
SVN2CL_XSL=svl2cl.xsl
|
||||
=========================
|
||||
|
||||
7zatarbz2.bat:
|
||||
|
@ -82,6 +85,8 @@ RSH = cfg.get('rsh', 'RSH')
|
|||
PURGE_URL = cfg.get('wiki', 'PURGE_URL')
|
||||
UPDATE_URL = cfg.get('wiki', 'UPDATE_URL')
|
||||
|
||||
SVN2CL_XSL = cfg.get('svn2cl', 'SVN2CL_XSL')
|
||||
|
||||
### config env
|
||||
|
||||
SVN_TAG = 'v' + ''.join(VERSION.split('.'))
|
||||
|
@ -227,16 +232,29 @@ def Export():
|
|||
)
|
||||
|
||||
def CreateChangeLog():
|
||||
import win32com.client
|
||||
import codecs
|
||||
|
||||
print 'generating ChangeLog...'
|
||||
|
||||
changelog = os.path.join(newverdir,'ChangeLog')
|
||||
|
||||
run(
|
||||
'%s log --verbose %s > %s' % (SVN, SVNROOT, changelog),
|
||||
'%s log --xml --verbose %s > %s' % (SVN, SVNROOT, changelog),
|
||||
LOG_ERRORS,
|
||||
'changelog failed'
|
||||
)
|
||||
|
||||
xmlo = win32com.client.Dispatch('Microsoft.XMLDOM')
|
||||
xmlo.loadXML(file(changelog).read())
|
||||
xmlo.preserveWhiteSpace = True
|
||||
xslo = win32com.client.Dispatch('Microsoft.XMLDOM')
|
||||
xslo.validateOnParse = False
|
||||
xslo.preserveWhiteSpace = True
|
||||
xslo.loadXML(file(SVN2CL_XSL).read())
|
||||
transformed = xmlo.transformNode(xslo)
|
||||
codecs.open(changelog, 'w', 'utf-8').write(transformed)
|
||||
|
||||
def CreateSourceTarball():
|
||||
print 'creating source tarball...'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue