3 # If you want to help me by participating to the build/test effort:
4 # http://gallium.inria.fr/~pouillar/ocaml-testing.html
8 echo "Usage: $0 (make|ocb|ocamlbuild) (win (mingw|msvc|msvc64) | <configure-arg>*)"
12 logfile
="buildbot.log"
15 curl
-s -0 -F "log=@$logfile" \
16 -F "host=`hostname`" \
17 -F "mode=$mode-$opt_win-$opt_win2" \
18 http
://buildbot.feydakins.org
/dropbox ||
:
29 if [ -f buildbot.failed
]; then
35 if figlet
"test" > /dev
/null
2> /dev
/null
; then
38 draw
="echo ----------- "
41 if echo |
tee -a tee.log
> /dev
/null
2> /dev
/null
; then
58 make|ocb|ocamlbuild
) : ;;
67 Makefile
=Makefile.nt
;;
68 *) Makefile
=Makefile
;;
71 ( [ -f config
/Makefile
] && make -f $Makefile clean ||
: ) 2>&1 | log clean
73 ( .
/build
/distclean.sh ||
: ) 2>&1 | log distclean
75 (cvs
-q up
-dP -r release310 || bad
) 2>&1 | log cvs up
82 sed -e 's/\(OTHERLIBRARIES=.*\) labltk/\1/' \
83 < "config/Makefile.$opt_win2" > config
/Makefile || bad
86 cp config
/m-nt.h config
/m.h || bad
88 cp config
/s-nt.h config
/s.h || bad
93 (.
/configure
--prefix `pwd`/_install $@ || bad
) 2>&1 | log configure
100 (make -f $Makefile world opt opt.opt
install || bad
) 2>&1 | log build
install
104 (.
/build
/fastworld.sh || bad
) 2>&1 | log build
106 (.
/build
/install.sh || bad
) 2>&1 | log
install
111 (cat _build
/not_installed || bad
) 2>&1 | log not_installed