summaryrefslogtreecommitdiff
path: root/cronscript
blob: fc96415502aabb01f56829d934337524ec6b2d2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
export TINDERBOX=1

# bring xorg.modules up-to-date
cd /jhbuild/checkout/xorg/util/modular/
git pull --rebase --quiet >/dev/null
cd /jhbuild

# purge autoconf configure caches
rm -f configure-cache
rm -f configure-cache-mingw

T1=$(date +%s)

# jhbuild for cygwin
jhbuild -f jhbuildrc autobuild -c -a --report-url="http://jturney-byron:ZpeyPFuK@tinderbox.x.org/builds/rpc"

# mesa is terrible, cannot installl what it builds, so help it out here as there's nowhere better to do this
cp /jhbuild/checkout/mesa/mesa/lib/gallium/*.dll /jhbuild/install/bin/
cp --no-dereference /jhbuild/checkout/mesa/mesa/lib/gallium/*.dll.a /jhbuild/install/lib/
# likewise mesa-glut
cp /jhbuild/checkout/mesa/glut/lib/*.dll /jhbuild/install/bin/
cp --no-dereference /jhbuild/checkout/mesa/glut/lib/*.dll.a /jhbuild/install/lib/

# jhbuild for mingw, if we have time
T2=$(date +%s)
DT="$(expr $T2 - $T1)"
echo "cygwin build took $DT seconds"

if [ $DT -lt 14400 ] ; then
jhbuild -f jhbuildrc.mingw autobuild -c -a --report-url="http://jturney-allegra:TBK1zMob@tinderbox.freedesktop.org/builds/rpc"
fi