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

cat > p.gpr <<EOF
with "apq";
project P is
   for Main use ("m.adb");
end P;
EOF
cat > m.adb <<EOF
with Apq;
procedure M is
   H : constant Apq.Hour_Number := 4;
begin
   null;
end M;
EOF

gnatmake -q -P p.gpr
./m
