mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
parent
1d823ba705
commit
dfe6c1208a
@ -11,7 +11,7 @@ from distutils.spawn import find_executable
|
||||
|
||||
from PyQt4 import pyqtconfig
|
||||
|
||||
from setup import isosx, iswindows
|
||||
from setup import isosx, iswindows, islinux
|
||||
|
||||
OSX_SDK = '/Developer/SDKs/MacOSX10.5.sdk'
|
||||
if not os.path.exists(OSX_SDK):
|
||||
@ -213,12 +213,15 @@ def get_ip_address(ifname):
|
||||
)[20:24])
|
||||
|
||||
try:
|
||||
HOST=get_ip_address('eth0')
|
||||
if islinux:
|
||||
HOST=get_ip_address('eth0')
|
||||
else:
|
||||
HOST='192.168.1.2'
|
||||
except:
|
||||
try:
|
||||
HOST=get_ip_address('wlan0')
|
||||
except:
|
||||
HOST='unknown'
|
||||
HOST='192.168.1.2'
|
||||
|
||||
PROJECT=os.path.basename(os.path.abspath('.'))
|
||||
|
||||
|
@ -19,12 +19,12 @@ class Rsync(Command):
|
||||
'--exclude src/calibre/manual --exclude src/calibre/trac '
|
||||
'--exclude .bzr --exclude .build --exclude .svn --exclude build --exclude dist '
|
||||
'--exclude "*.pyc" --exclude "*.pyo" --exclude "*.swp" --exclude "*.swo" '
|
||||
'rsync://{host}/work/{project} . ')
|
||||
'rsync://{host}/work/{project} ..')
|
||||
|
||||
def run(self, opts):
|
||||
cmd = self.SYNC_CMD.format(host=HOST, project=PROJECT)
|
||||
self.info(self.SYNC_CMD)
|
||||
subprocess.check_call(self.SYNC_CMD, shell=True)
|
||||
self.info(cmd)
|
||||
subprocess.check_call(cmd, shell=True)
|
||||
|
||||
|
||||
class VMInstaller(Command):
|
||||
@ -41,10 +41,9 @@ class VMInstaller(Command):
|
||||
|
||||
BUILD_CMD = 'ssh -t %s bash build-calibre'
|
||||
BUILD_PREFIX = ['#!/bin/bash', 'export CALIBRE_BUILDBOT=1']
|
||||
BUILD_RSYNC = [r'cd ~/build', Rsync.SYNC_CMD]
|
||||
BUILD_CLEAN = ['cd ~/build/{project} ',
|
||||
'rm -rf dist/* build/* src/calibre/plugins/*']
|
||||
BUILD_BUILD = ['python setup.py build',]
|
||||
BUILD_RSYNC = [r'cd ~/build/{project}', Rsync.SYNC_CMD]
|
||||
BUILD_CLEAN = ['rm -rf dist/* build/* src/calibre/plugins/*']
|
||||
BUILD_BUILD = ['python setup.py build',]
|
||||
|
||||
def add_options(self, parser):
|
||||
if not parser.has_option('--dont-shutdown'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user