File: link-with-shared

package info (click to toggle)
libncursesada 6.0.20150808-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,092 kB
  • ctags: 3,832
  • sloc: ada: 10,330; sh: 3,138; makefile: 818; ansic: 662; awk: 45
file content (20 lines) | stat: -rw-r--r-- 326 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 p.gpr
./main