mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-29 05:16:11 +01:00
This commit is contained in:
parent
e8e7c52065
commit
be071e930e
1 changed files with 10 additions and 7 deletions
17
upload.py
17
upload.py
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/python
|
||||
import sys, glob, os, subprocess, time, shutil
|
||||
import sys, os, shutil
|
||||
sys.path.append('src')
|
||||
from subprocess import check_call as _check_call
|
||||
from functools import partial
|
||||
|
|
@ -14,6 +14,7 @@
|
|||
check_call = partial(_check_call, shell=True)
|
||||
#h = Host(hostType=VIX_SERVICEPROVIDER_VMWARE_WORKSTATION)
|
||||
|
||||
|
||||
def tag_release():
|
||||
from libprs500 import __version__
|
||||
base = 'https://kovid@svn.kovidgoyal.net/code/libprs500'
|
||||
|
|
@ -64,12 +65,14 @@ def upload_demo():
|
|||
check_call('''scp /tmp/txt-demo.zip castalia:%s/'''%(DOWNLOADS,))
|
||||
|
||||
def upload_installers(exe, dmg):
|
||||
check_call('''ssh castalia rm -f %s/libprs500\*.exe'''%(DOWNLOADS,))
|
||||
check_call('''scp dist/%s castalia:%s/'''%(exe, DOWNLOADS))
|
||||
check_call('''ssh castalia rm -f %s/libprs500\*.dmg'''%(DOWNLOADS,))
|
||||
check_call('''scp dist/%s castalia:%s/'''%(dmg, DOWNLOADS))
|
||||
check_call('''ssh castalia chmod a+r %s/\*'''%(DOWNLOADS,))
|
||||
check_call('''ssh castalia /root/bin/update-installer-links %s %s'''%(exe, dmg))
|
||||
if exe and os.path.exists(exe):
|
||||
check_call('''ssh castalia rm -f %s/libprs500\*.exe'''%(DOWNLOADS,))
|
||||
check_call('''scp dist/%s castalia:%s/'''%(exe, DOWNLOADS))
|
||||
check_call('''ssh castalia rm -f %s/libprs500\*.dmg'''%(DOWNLOADS,))
|
||||
if dmg and os.path.exists(dmg):
|
||||
check_call('''scp dist/%s castalia:%s/'''%(dmg, DOWNLOADS))
|
||||
check_call('''ssh castalia chmod a+r %s/\*'''%(DOWNLOADS,))
|
||||
check_call('''ssh castalia /root/bin/update-installer-links %s %s'''%(exe, dmg))
|
||||
|
||||
def upload_docs():
|
||||
check_call('''epydoc --config epydoc.conf''')
|
||||
|
|
|
|||
Loading…
Reference in a new issue