* generic wrapper doit.sh script to spawn in screen
* git pull repo when 'make prep' is run
This commit is contained in:
parent
72d601b5bb
commit
8601eb1b37
3
Makefile
3
Makefile
|
@ -8,3 +8,6 @@ all:
|
|||
prep:
|
||||
cat loadbot/testservers |xargs -n 1 --replace=BLAH scp loadbot/prep.pl BLAH:
|
||||
cat loadbot/testservers |xargs -n 1 --replace=BLAH ssh BLAH ./prep.pl
|
||||
|
||||
screen:
|
||||
cat loadbot/testservers |xargs -n 1 --replace=BLAH ssh BLAH "screen -d -m -S loadbot /root/benchmarks/doit.sh"
|
||||
|
|
|
@ -45,4 +45,10 @@ if ($return eq "-1") {
|
|||
system "ifconfig";
|
||||
}
|
||||
|
||||
my $return = system("git clone http://github.com/basilarchia/benchmarks.git");
|
||||
if ( ! -e "benchmarks") {
|
||||
my $return = system("git clone http://69.55.54.144/benchmarks/.git/");
|
||||
} else {
|
||||
chdir "benchmarks";
|
||||
my $return = system("git pull");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue