This commit is contained in:
Kovid Goyal 2009-06-02 16:48:25 -07:00
parent aefd75f69f
commit 253a93d324
2 changed files with 10 additions and 1 deletions

View File

@ -735,7 +735,7 @@ class MobiWriter(object):
# The PalmDOC Header
record0.write(pack('>HHIHHHH', self._compression, 0,
self._text_length,
self._text_nrecords, RECORD_SIZE, 0, 0)) # 0 - 15 (0x0 - 0xf)
self._text_nrecords-1, RECORD_SIZE, 0, 0)) # 0 - 15 (0x0 - 0xf)
uid = random.randint(0, 0xffffffff)
title = str(metadata.title[0])
# The MOBI Header

View File

@ -707,6 +707,15 @@ class stage1(OptionlessCommand):
('upload_demo', None),
]
class betas(OptionlessCommand):
description = 'Build an upload beta builds to the servers'
sub_commands = [ ('stage2', None) ]
def run(self):
OptionlessCommand.run(self)
check_call('scp dist/* divok:'+BETAS, shell=True)
class upload(OptionlessCommand):
description = 'Build and upload calibre to the servers'