nuke old folders so release doesn't fail for no reason
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7141 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8b86606547
commit
914b496a1f
1 changed files with 14 additions and 0 deletions
|
@ -62,6 +62,8 @@ TODO
|
|||
"""
|
||||
|
||||
import os
|
||||
import os.path
|
||||
import shutil
|
||||
import sys
|
||||
import time
|
||||
import Image, ImageFont, ImageDraw
|
||||
|
@ -71,6 +73,10 @@ import pysvn
|
|||
|
||||
### read config
|
||||
|
||||
if not os.path.isfile('release.cfg'):
|
||||
print 'Unable to find release.cfg. Is this the right working directory?'
|
||||
sys.exit(1)
|
||||
|
||||
cfg = ConfigParser()
|
||||
cfg.read('release.cfg')
|
||||
|
||||
|
@ -161,6 +167,12 @@ def Confirm():
|
|||
|
||||
def StartLog():
|
||||
open('release-%s.log' % VERSION, 'w').write('releasing version %s at %s\n\n' % (VERSION, time.ctime()))
|
||||
|
||||
def DeleteOldFolders():
|
||||
for d in ['strlen_8192', 'log', 'insttest', 'insttestscons']:
|
||||
if os.path.isdir(d):
|
||||
log('Deleting %s' % d)
|
||||
shutil.rmtree(d)
|
||||
|
||||
def RunTests():
|
||||
print 'running tests...'
|
||||
|
@ -445,6 +457,7 @@ def UpdateWiki():
|
|||
def ToDo():
|
||||
print 'automatic phase done\n'
|
||||
print """
|
||||
* Make new release files the default download
|
||||
* Edit update.php
|
||||
* Post news item
|
||||
* http://en.wikipedia.org/w/index.php?title=Nullsoft_Scriptable_Install_System&action=edit
|
||||
|
@ -459,6 +472,7 @@ def CloseLog():
|
|||
|
||||
Confirm()
|
||||
StartLog()
|
||||
DeleteOldFolders()
|
||||
RunTests()
|
||||
TestSubversionEOL()
|
||||
CreateMenuImage()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue