Files
epics-base/src/tools/depclean.pl
Andrew Johnson 3c99391d93 Added SPDX License ID to all EPICS-original source files
In some cases the license-identification header was missing,
so I added that as well. Replaced the remaining headers that
specifically identified "Versions 3.13.7 and higher".

Makefiles and the build system were deliberately excluded.
2020-08-03 11:53:01 -05:00

22 lines
737 B
Perl

#!/usr/bin/env perl
#*************************************************************************
# Copyright (c) 2018 UChicago Argonne LLC, as Operator of Argonne
# National Laboratory.
# SPDX-License-Identifier: EPICS
# EPICS Base is distributed subject to a Software License Agreement found
# in the file LICENSE that is included with this distribution.
#*************************************************************************
# Find and delete dependency files from all build dirs in the source tree.
# The extension for dependency files is assumed to be .d (currently true).
use File::Find;
@ARGV = ('.') unless @ARGV;
sub check {
unlink if -f && m(/O\.[^/]+/[^/]+\.d$);
}
find({ wanted => \&check, no_chdir => 1 }, @ARGV);