1#! /bin/sh
2#
3
4set -e
5
6# Try to synchronize the file system in case $scp_host and $host are
7# different (NFS complains about stale file handles and whatnot
8# without this).
9sync
10sleep 1
11sync
12
13. ./build-params.sh
14
15# Make a unique temporary directory name.
16hostname=`hostname`
17tmpdir=build-tmp-$dir-$hostname-$$
18
19rm -rf $tmpdir
20mkdir $tmpdir
21cp $pkg $tmpdir
22cd $tmpdir
23
24gunzip -c $pkg | tar xf -
25cd $dir
26
27./tests/build-tests.sh
28