File: link-with-shared

package info (click to toggle)
libncursesada 6.1.20180127-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,192 kB
  • sloc: ada: 10,330; sh: 3,220; makefile: 827; ansic: 662; awk: 45
file content (20 lines) | stat: -rw-r--r-- 329 bytes parent folder | download
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 "$ADTTMP"

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