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
|
#!/bin/sh
# Copyright 2015 Ghislain Antony Vaillant
#
# This file is part of the autopkgtest testsuite for ArrayFire.
set -e
# Presence of $ADTTMP implies that someone will handle cleanup for us, so we
# can avoid duplicating the effort (signal handling, etc.) here.
if [ -z "$ADTTMP" ]
then
echo "Required envvar \"$ADTTMP\"is not set" >&2
exit 1
fi
# Copy example source code.
cp -a /usr/share/doc/libarrayfire-doc/examples/* "$ADTTMP"
cd "$ADTTMP"
# Configure and build.
mkdir build && cd build
cmake ./..
echo "configure: OK"
make
echo "build: OK"
|