projects
/
satune.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Scripts needed for automation of learning process ... Tested on Sypet benchmark ...
[satune.git]
/
deploy-cs.sh
diff --git
a/deploy-cs.sh
b/deploy-cs.sh
index 3e3dcc76fe84a43617ad19dd50da2261fae4e189..6eafd0612ee4c62a04767b16f96e6f7e33ef418f 100755
(executable)
--- a/
deploy-cs.sh
+++ b/
deploy-cs.sh
@@
-4,19
+4,21
@@
set -e
BASE=../
set -e
BASE=../
-SERVERS="dc-8.calit2.uci.edu dc-9.calit2.uci.edu dc-10.calit2.uci.edu dc-11.calit2.uci.edu"
+SERVERS="dc-4.calit2.uci.edu dc-5.calit2.uci.edu dc-6.calit2.uci.edu dc-7.calit2.uci.edu dc-8.calit2.uci.edu dc-9.calit2.uci.edu dc-10.calit2.uci.edu dc-11.calit2.uci.edu"
+#SERVERS="dc-1.calit2.uci.edu dc-2.calit2.uci.edu dc-3.calit2.uci.edu"
REMOTEDIR="/scratch/hamed/"
INFILE="constraint_compiler/"
SRC="constraint_compiler/src/"
REMOTEDIR="/scratch/hamed/"
INFILE="constraint_compiler/"
SRC="constraint_compiler/src/"
+SHAREDDIR=~/
OUTFILE=csolver.tar.gz
USER=hamed
OUTFILE=csolver.tar.gz
USER=hamed
-
+BIN=${REMOTEDIR}${SRC}/bin
cd $BASE
rm -f $OUTFILE
tar -czvf $OUTFILE $INFILE
cd $BASE
rm -f $OUTFILE
tar -czvf $OUTFILE $INFILE
+cp $OUTFILE $SHAREDDIR
for SERVER in $SERVERS; do
for SERVER in $SERVERS; do
- scp $OUTFILE "$USER@$SERVER:$REMOTEDIR"
- ssh $USER@$SERVER "cd $REMOTEDIR; sudo rm -r $SRC; tar -xzvf $OUTFILE; cd $SRC; make clean; ./setup.sh"
+ ssh $USER@$SERVER "cp $SHAREDDIR$OUTFILE $REMOTEDIR; cd $REMOTEDIR; sudo rm -r $SRC; tar -xzvf $OUTFILE; cd $SRC; make clean; ./setup.sh; find -iname csolver -exec rm '{}' \; -exec ln -s $BIN '{}' \;"
done
done