"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.16.7/util/check-make-install.in" (4 Sep 2020, 814 Bytes) of package /linux/misc/dns/bind9/9.16.7/bind-9.16.7.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 #
    3 # Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    4 #
    5 # This Source Code Form is subject to the terms of the Mozilla Public
    6 # License, v. 2.0. If a copy of the MPL was not distributed with this
    7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
    8 #
    9 # See the COPYRIGHT file distributed with this work for additional
   10 # information regarding copyright ownership.
   11 
   12 abs_top_srcdir=@abs_top_srcdir@
   13 prefix=@prefix@
   14 includedir=@includedir@
   15 
   16 headers_to_install() {
   17     find "${abs_top_srcdir}/lib" -name "*.h" -or -name "*.h.in" |
   18         grep -v -F /win32/ |
   19         sed -n \
   20             -e "s|\.h\.in$|\.h|" \
   21             -e "s|.*include/|${DESTDIR}${includedir}/|p" |
   22         sort -u
   23 }
   24 
   25 status=0
   26 
   27 for header in $(headers_to_install); do
   28     if [ ! -f "${header}" ]; then
   29         echo "Missing $header"
   30         status=1
   31     fi
   32 done
   33 
   34 exit $status