From 82183ed374c90142bb28de36c119210ee50d53ca 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(-) (limited to 'configure') 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