1#!/bin/sh
2# postinst script for libada-util
3#
4# see: dh_installdeb(1)
5
6set -e
7
8if [ -f /usr/share/ada/adainclude/util.gpr ]; then
9
10has_aws="no"
11has_curl="no"
12if [ -f /usr/share/ada/adainclude/util_http_curl.gpr ]; then
13  has_curl="yes"
14fi
15if [ -f /usr/share/ada/adainclude/util_http_aws.gpr ]; then
16  has_aws="yes"
17fi
18(echo 'with "util";';
19 test "$has_curl" = "no" || echo 'with "util_http_curl";'
20 test "$has_aws" = "no" || echo 'with "util_http_aws";'
21 echo 'abstract project Util_Http is'
22 echo '   type Yes_No is ("yes", "no");'
23 echo '   Has_Curl    : Yes_No := "'$has_curl'";'
24 echo '   Has_AWS     : Yes_No := "'$has_aws'";'
25 echo "end Util_Http;"
26)> /usr/share/ada/adainclude/util_http.gpr
27
28fi
29
30#DEBHELPER#
31
32exit 0
33