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
|
||||||
|
import os.path
|
||||||
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import Image, ImageFont, ImageDraw
|
import Image, ImageFont, ImageDraw
|
||||||
|
@ -71,6 +73,10 @@ import pysvn
|
||||||
|
|
||||||
### read config
|
### 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 = ConfigParser()
|
||||||
cfg.read('release.cfg')
|
cfg.read('release.cfg')
|
||||||
|
|
||||||
|
@ -161,6 +167,12 @@ def Confirm():
|
||||||
|
|
||||||
def StartLog():
|
def StartLog():
|
||||||
open('release-%s.log' % VERSION, 'w').write('releasing version %s at %s\n\n' % (VERSION, time.ctime()))
|
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():
|
def RunTests():
|
||||||
print 'running tests...'
|
print 'running tests...'
|
||||||
|
@ -445,6 +457,7 @@ def UpdateWiki():
|
||||||
def ToDo():
|
def ToDo():
|
||||||
print 'automatic phase done\n'
|
print 'automatic phase done\n'
|
||||||
print """
|
print """
|
||||||
|
* Make new release files the default download
|
||||||
* Edit update.php
|
* Edit update.php
|
||||||
* Post news item
|
* Post news item
|
||||||
* http://en.wikipedia.org/w/index.php?title=Nullsoft_Scriptable_Install_System&action=edit
|
* http://en.wikipedia.org/w/index.php?title=Nullsoft_Scriptable_Install_System&action=edit
|
||||||
|
@ -459,6 +472,7 @@ def CloseLog():
|
||||||
|
|
||||||
Confirm()
|
Confirm()
|
||||||
StartLog()
|
StartLog()
|
||||||
|
DeleteOldFolders()
|
||||||
RunTests()
|
RunTests()
|
||||||
TestSubversionEOL()
|
TestSubversionEOL()
|
||||||
CreateMenuImage()
|
CreateMenuImage()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue