File: link-with-shared

package info (click to toggle)
libncursesada 6.2.20200212-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,468 kB
  • sloc: ada: 9,967; sh: 3,260; makefile: 831; ansic: 662; awk: 68
file content (20 lines) | stat: -rw-r--r-- 338 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -C -e -f -u
cd "$AUTOPKGTEST_TMP"

cat > main.adb <<EOF
with Ada.Text_IO;
with Terminal_Interface.Curses;
procedure Main is
begin
   Ada.Text_IO.Put_Line (Terminal_Interface.Curses.NC_Version);
end Main;
EOF
cat > p.gpr <<EOF
with "ncursesada";
project P is
   for Main use ("main.adb");
end P;
EOF
gprbuild -v p.gpr
./main