mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
parent
10af51b5a7
commit
ccbcc8e0e1
@ -6,7 +6,7 @@ __license__ = 'GPL v3'
|
||||
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import sys, os, shutil, subprocess, re, time
|
||||
import sys, os, shutil, subprocess, re, time, glob
|
||||
from datetime import datetime
|
||||
|
||||
from setup import Command, __appname__, __version__
|
||||
@ -31,6 +31,11 @@ class Stage2(Command):
|
||||
description = 'Stage 2 of the publish process'
|
||||
sub_commands = ['linux', 'win', 'osx']
|
||||
|
||||
def pre_sub_commands(self, opts):
|
||||
for x in glob.glob(os.path.join(self.SRC, 'dist', '*')):
|
||||
os.remove(x)
|
||||
|
||||
|
||||
class Stage3(Command):
|
||||
|
||||
description = 'Stage 3 of the publish process'
|
||||
|
Loading…
x
Reference in New Issue
Block a user