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 #!/usr/bin/python
import sys, glob, os, subprocess, time, shutil import sys, os, shutil
sys.path.append('src') sys.path.append('src')
from subprocess import check_call as _check_call from subprocess import check_call as _check_call
from functools import partial from functools import partial
@ -14,6 +14,7 @@ TXT2LRF = "src/libprs500/ebooks/lrf/txt/demo"
check_call = partial(_check_call, shell=True) check_call = partial(_check_call, shell=True)
#h = Host(hostType=VIX_SERVICEPROVIDER_VMWARE_WORKSTATION) #h = Host(hostType=VIX_SERVICEPROVIDER_VMWARE_WORKSTATION)
def tag_release(): def tag_release():
from libprs500 import __version__ from libprs500 import __version__
base = 'https://kovid@svn.kovidgoyal.net/code/libprs500' 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,)) check_call('''scp /tmp/txt-demo.zip castalia:%s/'''%(DOWNLOADS,))
def upload_installers(exe, dmg): def upload_installers(exe, dmg):
check_call('''ssh castalia rm -f %s/libprs500\*.exe'''%(DOWNLOADS,)) if exe and os.path.exists(exe):
check_call('''scp dist/%s castalia:%s/'''%(exe, DOWNLOADS)) check_call('''ssh castalia rm -f %s/libprs500\*.exe'''%(DOWNLOADS,))
check_call('''ssh castalia rm -f %s/libprs500\*.dmg'''%(DOWNLOADS,)) check_call('''scp dist/%s castalia:%s/'''%(exe, DOWNLOADS))
check_call('''scp dist/%s castalia:%s/'''%(dmg, DOWNLOADS)) check_call('''ssh castalia rm -f %s/libprs500\*.dmg'''%(DOWNLOADS,))
check_call('''ssh castalia chmod a+r %s/\*'''%(DOWNLOADS,)) if dmg and os.path.exists(dmg):
check_call('''ssh castalia /root/bin/update-installer-links %s %s'''%(exe, 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(): def upload_docs():
check_call('''epydoc --config epydoc.conf''') check_call('''epydoc --config epydoc.conf''')