File: no-project

package info (click to toggle)
libxmlada 25.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,212 kB
  • sloc: ada: 78,068; sh: 3,310; makefile: 394; xml: 111; python: 39
file content (33 lines) | stat: -rw-r--r-- 951 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
set -C -e -f -u

# Build domexample.adb with the gnatmake GCC tool.

# Requires the dpkg-dev and gcc packages.
DEB_HOST_MULTIARCH=`dpkg-architecture -qDEB_HOST_MULTIARCH`
ADAINCLUDE=/usr/share/ada/adainclude
ADALIB=/usr/lib/$DEB_HOST_MULTIARCH/ada/adalib

docdir=/usr/share/doc/libxmlada-doc/examples/dom

gnatmake -eS -v $docdir/domexample.adb \
         -D "$AUTOPKGTEST_TMP" -o "$AUTOPKGTEST_TMP/domexample" \
         -aI$ADAINCLUDE/xmlada_dom \
         -aI$ADAINCLUDE/xmlada_sax \
         -aI$ADAINCLUDE/xmlada_input \
         -aI$ADAINCLUDE/xmlada_unicode \
         \
         -aO$ADALIB/xmlada_dom \
         -aO$ADALIB/xmlada_sax \
         -aO$ADALIB/xmlada_input \
         -aO$ADALIB/xmlada_unicode \
         \
         -largs \
         -lxmlada_dom \
         -lxmlada_sax \
         -lxmlada_input \
         -lxmlada_unicode

# domexample needs pref.xml in the current directory.
cd $docdir
"$AUTOPKGTEST_TMP/domexample"