git: aab35ed9c4c2 - stable/15 - Remove all of /usr/tests/share/examples/... when MK_EXAMPLES == no

From: Enji Cooper <ngie_at_FreeBSD.org>
Date: Fri, 12 Jun 2026 18:11:13 UTC
The branch stable/15 has been updated by ngie:

URL: https://cgit.FreeBSD.org/src/commit/?id=aab35ed9c4c2f80217efb2f14f5bfa752dcf2d62

commit aab35ed9c4c2f80217efb2f14f5bfa752dcf2d62
Author:     Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-04-22 21:06:37 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-06-12 18:10:11 +0000

    Remove all of /usr/tests/share/examples/... when MK_EXAMPLES == no
    
    - Remove the generated files (`file1`).
    - Remove the top-level example `Kyuafile`.
    
    MFC after:      1 week
    
    (cherry picked from commit fb7df70a479f7cf972073f3a779adba2b4517c31)
---
 tools/build/mk/OptionalObsoleteFiles.inc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc
index f720b558e0e1..c76c51af68a5 100644
--- a/tools/build/mk/OptionalObsoleteFiles.inc
+++ b/tools/build/mk/OptionalObsoleteFiles.inc
@@ -1975,8 +1975,10 @@ OLD_FILES+=usr/share/examples/sunrpc/sort/Makefile
 OLD_FILES+=usr/share/examples/sunrpc/sort/rsort.c
 OLD_FILES+=usr/share/examples/sunrpc/sort/sort.x
 OLD_FILES+=usr/share/examples/sunrpc/sort/sort_proc.c
+OLD_FILES+=usr/tests/share/examples/Kyuafile
 OLD_FILES+=usr/tests/share/examples/tests/atf/Kyuafile
 OLD_FILES+=usr/tests/share/examples/tests/atf/cp_test
+OLD_FILES+=usr/tests/share/examples/tests/atf/file1
 OLD_FILES+=usr/tests/share/examples/tests/atf/printf_test
 OLD_FILES+=usr/tests/share/examples/tests/googletest/Kyuafile
 OLD_FILES+=usr/tests/share/examples/tests/googletest/sample10_unittest
@@ -1990,9 +1992,11 @@ OLD_FILES+=usr/tests/share/examples/tests/googletest/sample7_unittest
 OLD_FILES+=usr/tests/share/examples/tests/googletest/sample8_unittest
 OLD_FILES+=usr/tests/share/examples/tests/plain/Kyuafile
 OLD_FILES+=usr/tests/share/examples/tests/plain/cp_test
+OLD_FILES+=usr/tests/share/examples/tests/plain/file1
 OLD_FILES+=usr/tests/share/examples/tests/plain/printf_test
 OLD_FILES+=usr/tests/share/examples/tests/tap/Kyuafile
 OLD_FILES+=usr/tests/share/examples/tests/tap/cp_test
+OLD_FILES+=usr/tests/share/examples/tests/tap/file1
 OLD_FILES+=usr/tests/share/examples/tests/tap/printf_test
 OLD_FILES+=usr/tests/share/examples/tests/Kyuafile
 OLD_FILES+=usr/share/examples/tcsh/complete.tcsh