mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-07 02:32:32 +01:00
Updated.
This commit is contained in:
parent
9c08a192d5
commit
032054a168
@ -37,6 +37,10 @@ if __name__ == '__main__':
|
|||||||
error('Invalid version string: '
|
error('Invalid version string: '
|
||||||
'must be of the form MAJOR.MINOR.PATCHLEVEL.')
|
'must be of the form MAJOR.MINOR.PATCHLEVEL.')
|
||||||
|
|
||||||
|
if os.path.exists('supybot'):
|
||||||
|
error('I need to make the directory "supybot" but it already exists.'
|
||||||
|
' Change to an appropriate directory or rmeove the supybot '
|
||||||
|
'directory to continue.')
|
||||||
system('cvs -d:ext:%s@cvs.sf.net:/cvsroot/supybot co supybot' % u)
|
system('cvs -d:ext:%s@cvs.sf.net:/cvsroot/supybot co supybot' % u)
|
||||||
os.chdir('supybot')
|
os.chdir('supybot')
|
||||||
|
|
||||||
@ -63,20 +67,25 @@ if __name__ == '__main__':
|
|||||||
os.remove('.cvsignore')
|
os.remove('.cvsignore')
|
||||||
|
|
||||||
os.chdir('..')
|
os.chdir('..')
|
||||||
shutil.move('supybot', 'Supybot-%s' % v)
|
dirname = 'Supybot-%s' % v
|
||||||
|
if os.path.exists(dirname):
|
||||||
|
shutil.rmtree(dirname)
|
||||||
|
shutil.move('supybot', dirname)
|
||||||
|
|
||||||
system('tar czvf Supybot-%s.tar.gz Supybot-%s' % (v, v))
|
system('tar czvf Supybot-%s.tar.gz %s' % (v, dirname))
|
||||||
system('tar cjvf Supybot-%s.tar.bz2 Supybot-%s' % (v, v))
|
system('tar cjvf Supybot-%s.tar.bz2 %s' % (v, dirname))
|
||||||
system('zip -r Supybot-%s.zip Supybot-%s' % (v, v))
|
system('zip -r Supybot-%s.zip %s' % (v, dirname))
|
||||||
|
|
||||||
ftp = ftplib.FTP('upload.sf.net')
|
ftp = ftplib.FTP('upload.sf.net')
|
||||||
ftp.login()
|
ftp.login()
|
||||||
ftp.cwd('incoming')
|
ftp.cwd('incoming')
|
||||||
ftp.storbinary('STOR Supybot-%s.tar.gz' % v)
|
for filename in ['Supybot-%s.tar.gz',
|
||||||
ftp.storbinary('STOR Supybot-%s.tar.bz2' % v)
|
'Supybot-%s.tar.bz2',
|
||||||
ftp.storbinary('STOR Supybot-%s.zip' % v)
|
'Supybot-%s.zip']:
|
||||||
|
filename = filename % v
|
||||||
|
print 'Uploading %s to SF.net.' % filename
|
||||||
|
ftp.storbinary('STOR %s' % filename, file(filename))
|
||||||
ftp.close()
|
ftp.close()
|
||||||
|
|
||||||
## fd = file('version.txt', 'w')
|
# This is the part where we do our release on Freshmeat using XMLRPC and
|
||||||
## fd.write(v+'\n')
|
# <gasp> ESR's software to do it: http://freshmeat.net/p/freshmeat-submit/
|
||||||
## fd.close()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user