Add sanity check to "remove-deprecated-files" target.
authorDaniel Fojt <df@neosystem.org>
Sat, 25 Jul 2020 18:02:43 +0000 (20:02 +0200)
committerDaniel Fojt <df@neosystem.org>
Fri, 31 Jul 2020 12:17:36 +0000 (14:17 +0200)
commitd5d36918ba8270b25193b0e4651b8efe546616a6
tree57cccef29e95f06b34c03016ab9ad8bedb2ca0a8
parent7ecbf3224953e796e725bb7e2daf6705338a33b4
Add sanity check to "remove-deprecated-files" target.

Import helper awk script to detect objects linked to particular
library.

Separate the check to a new target "check-deprecated-files" in
etc/Makefile and utilize the script to report libraries that are
still in use.

Default is to check directories under /usr/local/. Additional places
to search may be specified via CHECK_DEPRECATED_DIRS variable, like:

   make CHECK_DEPRECATED_DIRS="/opt/lib /opt/bin" upgrade

Suggested and reviewed by: Sascha Wildner
etc/Makefile
tools/tools/chkldd/chkldd.awk [new file with mode: 0644]