#!/bin/sh
+if [ "$ALICE_TARGET" = "win32gcc" ]
+ then
+ REXE=root_exe.exe
+else
+ REXE=aliroot
+fi
+
rm -rf *.root *.dat *.log fort* hlt hough raw* *.inp *.o
-aliroot -b -q sim.C 2>&1 | tee sim.log
+${REXE} -b -q sim.C 2>&1 | tee sim.log
mv syswatch.log simwatch.log
-aliroot -b -q rec.C 2>&1 | tee rec.log
+${REXE} -b -q rec.C 2>&1 | tee rec.log
mv syswatch.log recwatch.log
-aliroot -b -q check.C 2>&1 | tee check.log
-aliroot -b -q aod.C 2>&1 | tee aod.log
+${REXE} -b -q check.C 2>&1 | tee check.log
+${REXE} -b -q aod.C 2>&1 | tee aod.log