File: build.sh

package info (click to toggle)
libgnatcoll 18-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,068 kB
  • sloc: ada: 40,393; python: 354; ansic: 310; makefile: 245; sh: 31
file content (21 lines) | stat: -rw-r--r-- 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