This commit is contained in:
Kovid Goyal 2008-02-01 16:59:49 +00:00
parent e8e7c52065
commit be071e930e

View File

@ -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 @@ TXT2LRF = "src/libprs500/ebooks/lrf/txt/demo"
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,9 +65,11 @@ def upload_demo():
check_call('''scp /tmp/txt-demo.zip castalia:%s/'''%(DOWNLOADS,))
def upload_installers(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))