blob: 0073efde5502c889f8008a282022ce5e07c301e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
#
# Simple script to push a compiled version of liblitmus2010 to a KVM instance.
# Originally written by Andrea Bastoni.
# Config file support added by Bjoern Brandenburg.
SSH_PORT=2222 # default
SSH_USER=root # what to log in as
SSH_HOST=localhost # where is the forwarded port?
HOST_LIBLITMUS_DIR="~/liblitmus2010" # where is the compilation unit
KVM_WORKSPACE="~/" # where to copy the files
# include config file
[ -f ~/.litmus_kvm ] && source ~/.litmus_kvm
#SRC="${SSH_USER}@${SSH_HOST}:${DATA_DIR}${FILE_GLOB}"
#echo scp -P $SSH_PORT ${SRC} ${DOWNLOADS}
#scp -P $SSH_PORT ${SRC} ${DOWNLOADS}
CMD="ssh -l ${SSH_USER} -p ${SSH_PORT}"
TARGET="${SSH_HOST}:${KVM_WORKSPACE}"
echo rsync -ah -z --progress -e "$CMD" ${HOST_LIBLITMUS_DIR} ${TARGET}
rsync -ah -z --progress -e "$CMD" ${HOST_LIBLITMUS_DIR} ${TARGET}
|