4 graal.ens-lyon.fr allo-psmn.ens-lyon.fr \
5 valnure.cs.ucsb.edu sperm.cs.ucsb.edu basalt.cs.ucsb.edu \
8 # ACTIONS: What to do there
10 # - scp: copy a tarball over
11 # - rsync: rsync the source (rsync must be installed remotely)
13 # - clean: erase any previously existing source tree and
15 # - untar: open the tarball which was just copied
16 # - touch: touch every file of the source tree to deal with
17 # clock brokenness. May help, may harm.
18 # - config: launch configure
19 # - compile: run 'make'
20 # - install: run 'make install'
21 # - check: run 'make check'
24 ACTIONS=${ACTIONS:-scp clean untar config compile check}
26 REMOTE_PREFIX=${REMOTE_PREFIX:-simgrid}
29 ### End of configuration. You shouldn't change anything below
32 srcdir=`echo "@srcdir@"|./config.status --file=-:-`
33 PACKAGE=`echo "@PACKAGE@"|./config.status --file=-:-`
34 VERSION=`echo "@VERSION@"|./config.status --file=-:-`
36 echo;echo "----[ Recompile the package on remote hosts ]----"
37 test -e $srcdir/buildlogs/${PACKAGE}-${VERSION} || mkdir -p ${srcdir}/buildlogs/${PACKAGE}-${VERSION}
39 for site in ${MACHINES} ; do
40 machine=`echo $site |sed 's/^\([^%]*\)%.*$/\1/'`;
41 machine2=`echo $site |sed 's/^\([^%]*\)%\(.*\)$/\2/'`;
42 cmd="\"sh -c 'env REMOTE_PREFIX=${REMOTE_PREFIX} ${REMOTE_PREFIX}/src/graspe-slave ${ACTIONS} 2>&1'\"";
43 if echo $site | grep '%' >/dev/null ; then
44 echo "----[ Compile on $machine2 (behind $machine) ]----";
47 echo "----[ Compile on $machine ]----";
54 if echo ${ACTIONS} | grep -q scp ; then
55 echo "-- Copy the data over";
56 [ -e ${srcdir}/${PACKAGE}-${VERSION}.tar.gz ] || make -C ${srcdir} dist
57 scp ${srcdir}/${PACKAGE}-${VERSION}.tar.gz tools/graspe-slave \
58 $machine:${REMOTE_PREFIX}/src;
59 else if echo ${ACTIONS} | grep -q rsync ; then
60 echo "-- Rsync the data over";
61 [ -e ${srcdir}/${PACKAGE}-${VERSION} ] || make -C ${srcdir} distdir
62 rsync -t -r ${srcdir}/${PACKAGE}-${VERSION} tools/graspe-slave $machine:${REMOTE_PREFIX}/src/
69 echo "-- Compiling... (the output gets into ${srcdir}/buildlogs/${PACKAGE}-${VERSION}/$site.log)";
70 if echo $site | grep '%' >/dev/null ; then
71 if ssh $machine "env REMOTE_PREFIX=${REMOTE_PREFIX} ssh -A $machine2 $cmd" 2>&1 > ${srcdir}/buildlogs/${PACKAGE}-${VERSION}/$site.log;
72 then echo "Sucessful"; else failed=1;echo "Failed (check ${srcdir}/buildlogs/${PACKAGE}-${VERSION}/$site.log)"; fi;echo;
74 if ssh $machine "eval $cmd" 2>&1 > ${srcdir}/buildlogs/${PACKAGE}-${VERSION}/$site.log ;
75 then echo "Sucessful"; else failed=1;echo "Failed (check ${srcdir}/buildlogs/${PACKAGE}-${VERSION}/$site.log)"; fi;echo;
78 ${srcdir}/tools/compile-stats;