From fa56ad4f776cf2dfa89e6d1135202036202794e2 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 3 Feb 2024 20:02:52 +0000 Subject: build system: usage(): handle lack of a of project-specific cfgdefs.usage. --- configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 8641815..a89de3e 100755 --- a/configure +++ b/configure @@ -33,7 +33,12 @@ usage() " ___________________________________________" \ "__________________________________" - cat "$mb_project_dir"/project/config/cfgdefs.usage + if [ -f "$mb_project_dir"/project/config/cfgdefs.usage ]; then + cat "$mb_project_dir"/project/config/cfgdefs.usage + else + printf '%s\n\n' \ + "[ info: this project does not provide a project-specific cfgdefs.usage file. ]" + fi fi exit 0 -- cgit v1.2.3