purge pages that use the templates to make sure they're updated
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4452 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
f4b085b2f9
commit
5fd6255949
1 changed files with 12 additions and 0 deletions
|
@ -28,6 +28,7 @@ ZIP="C:\Program Files\7-zip\7za.exe" a -tzip %s -mx9 -mfb=255 -mpass=4 %s
|
|||
SCP="pscp -2"
|
||||
|
||||
[wiki]
|
||||
PURGE_URL=http://nsis.sourceforge.net/%s?action=purge
|
||||
UPDATE_URL=http://nsis.sourceforge.net/Special:Simpleupdate?action=raw
|
||||
=========================
|
||||
|
||||
|
@ -80,6 +81,7 @@ ZIP = cfg.get('compression', 'ZIP')
|
|||
|
||||
SCP = cfg.get('scp', 'SCP')
|
||||
|
||||
PURGE_URL = cfg.get('wiki', 'PURGE_URL')
|
||||
UPDATE_URL = cfg.get('wiki', 'UPDATE_URL')
|
||||
|
||||
### config env
|
||||
|
@ -316,10 +318,20 @@ def update_wiki_page(page, data, summary):
|
|||
print ' *** failed updating `%s` wiki page' % page
|
||||
exit()
|
||||
|
||||
def purge_wiki_page(page):
|
||||
import urllib
|
||||
urllib.urlopen(PURGE_URL % page).read()
|
||||
|
||||
update_wiki_page('Template:NSISVersion', VERSION, 'new version')
|
||||
update_wiki_page('Template:NSISReleaseDate', time.strftime('%B %d, %Y'), 'new version')
|
||||
update_wiki_page('Template:NSISReleaseID', release_id, 'new version')
|
||||
|
||||
purge_wiki_page('Main_Page')
|
||||
purge_wiki_page('Download')
|
||||
purge_wiki_page('Special_Builds')
|
||||
purge_wiki_page('What_is_the_latest_version_of_NSIS')
|
||||
purge_wiki_page('Change_Log')
|
||||
|
||||
print 'automatic phase done\n'
|
||||
print """
|
||||
* Add SourceForge release
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue