~dandrader/unity8/multiInstanceApp

« back to all changes in this revision

Viewing changes to run_on_device

  • Committer: Michał Sawicz
  • Date: 2013-06-07 14:58:52 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: michal@sawicz.net-20130607145852-vfen17ya438ycdyh
Support git-backed checkout in run_on_device.

Also add .gitignore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
}
64
64
 
65
65
sync_code() {
66
 
    bzr export --uncommitted --format=dir /tmp/$CODE_DIR
 
66
    [ -e .bzr ] && bzr export --uncommitted --format=dir /tmp/$CODE_DIR
 
67
    [ -e .git ] && git checkout-index -a -f --prefix=/tmp/$CODE_DIR/
67
68
    rsync -crlOzv -e "ssh -p $TARGET_SSH_PORT -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" /tmp/$CODE_DIR/ $USER@$TARGET_IP:$CODE_DIR/
68
69
    rm -rf /tmp/$CODE_DIR
69
70
}