File: check-make-install.in

package info (click to toggle)
bind9-libs 1%3A9.11.19%2Bdfsg-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 42,008 kB
  • sloc: ansic: 341,272; sh: 38,449; xml: 22,061; perl: 8,266; makefile: 3,913; cpp: 2,086; python: 535; tcl: 13
file content (35 lines) | stat: -rw-r--r-- 848 bytes parent folder | download
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
34
35
#!/bin/sh
#
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.

abs_top_srcdir=@abs_top_srcdir@
prefix=@prefix@
includedir=@includedir@

headers_to_install() {
	find "${abs_top_srcdir}/lib" -name "*.h" -or -name "*.h.in" |
		grep -v -F /win32/ |
		grep -v -F include/isc/ipv6.h |
		sed -n \
		    -e "s|\.h\.in$|\.h|" \
		    -e "s|.*include/|${DESTDIR}${includedir}/|p" |
		sort -u
}

status=0

for header in $(headers_to_install); do
	if [ ! -f "${header}" ]; then
		echo "Missing $header"
		status=1
	fi
done

exit $status