File: link-with-shared

package info (click to toggle)
libncursesada 5.9.20140726-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,040 kB
  • ctags: 3,826
  • sloc: ada: 10,302; sh: 3,105; makefile: 824; ansic: 640; awk: 45
file content (20 lines) | stat: -rw-r--r-- 332 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
gnatmake -q -P p.gpr
./main