#!/bin/sh
set -C -e -f -u
TOP_SOURCE_DIR="`pwd`"
cd "$AUTOPKGTEST_TMP"

cat > p.gpr <<EOF
with "texttools";
project P is
   for Source_Dirs use ("$TOP_SOURCE_DIR/examples");
   for Main use ("try_unix.adb");
end P;
EOF
gprbuild -v p.gpr
./try_unix
