check-sources.pl revision 247bf378605811d695e968dbe930a7fc45c0038e
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 2004, 2007, 2012 Internet Systems Consortium, Inc. ("ISC")
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * Copyright (C) 2000, 2001 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and/or distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * copyright notice and this permission notice appear in all copies.
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson# Rudimentary, primarily for use by the developers.
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson# This just evolved with no serious attempt at making it
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson# bulletproof or foolproof. Or pretty even. Probably would
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson# have done it differently if it were actually designed as opposed
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson# to just growing as a multi-tentacled thing as various messages
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson# were either added or selectively silenced.
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson if (-d $::a) {
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson if (-d $::b) {
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson return ($::a cmp $::b);
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson } elsif (-d $::b) {
d4f67a6d132d16485e8d8e4657a1aaa83224756fAndreas Gustafsson return ($::a cmp $::b);
next if $entry =~ /^\.\.?$/;
if (-d $entry) {
next if $entry !~ /\.o$/;
closedir(DIR);
do_file($) {
unless ($objfile =~ /\.o$/) {
if (-f $savesource) {
unless (-f $file) {
close(SOURCE);
if (! $config_h) {
next if m%snprintf%m;
close(SOURCE);
if (! defined($cpp_if)) {
if $cpp_if;
compile($) {
unless ($obj =~ /\.o$/) {
close(COMPILE);
unlink($obj);
main() {
print <<EOF;
main();