Initial public OpenBMH 0.1 source (by Codex)

This commit is contained in:
Codex committed 2026-10-16 19:36:32 +02:00
commit 558fbf166b
613 files changed
+168029

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
# SPDX-License-Identifier: GPL-3.0-only
# Reject accidental shell login banners in source and documentation.
file(GLOB_RECURSE files RELATIVE "${SOURCE_DIR}"
"${SOURCE_DIR}/src/*" "${SOURCE_DIR}/tests/*" "${SOURCE_DIR}/docs/*"
"${SOURCE_DIR}/CMakeLists.txt")
set(bad "")
foreach(f IN LISTS files)
# This rule file contains the rejected strings deliberately.
if(f MATCHES "repo_hygiene\.cmake$")
continue()
endif()
file(STRINGS "${SOURCE_DIR}/${f}" hit REGEX "Debian LXC Container|community-scripts ORG" LIMIT_COUNT 1)
if(hit)
list(APPEND bad "${f}")
endif()
endforeach()
if(bad)
message(FATAL_ERROR "login banner found in: ${bad}")
endif()