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

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
gnatmake -q -P p.gpr
./try_unix
