File: build.sh

package info (click to toggle)
libgnatcoll 1.7gpl2015-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,280 kB
  • ctags: 1,124
  • sloc: ada: 134,072; python: 4,017; cpp: 1,397; ansic: 1,234; makefile: 368; sh: 152; xml: 31; sql: 6
file content (21 lines) | stat: -rwxr-xr-x 582 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
21
#!/bin/sh

cd obj

# Create the database from the schema (remove the old one, just in case)
rm -f library.db
gnatcoll_db2ada -dbtype=sqlite -dbname=library.db -dbmodel=../dbschema.txt -createdb

# Generate the Ada API
gnatcoll_db2ada -api=Database -orm=ORM -dbmodel=../dbschema.txt

cd ..

# -m switch is so that gnatmake does not use timestamps but checksums
# for dependencies (otherwise since we regenerate the files every time
# we also recompile every time)
gnatmake -q -g -m -Pdefault.gpr

# Run the executable
#    ./obj/library
#    valgrind --leak-check=full ./obj/library