#!/bin/sh

### Exit immediately if a command exits with a non-zero status
set -e

### Get temporary directory and change to it
tmpdir=$(mktemp --directory)
cd $tmpdir

### Copy all distributed exemples here
cp /usr/share/doc/librsb-dev/examples/* .

### Compile them
./make.sh

### Do cleanup
cd ..
rm -rf $tempdir
