From 2bf6f8a490b10de373efb39d673968814f192741 Mon Sep 17 00:00:00 2001 From: midipix Date: Feb 03 2024 20:07:44 +0000 Subject: build system: usage(): handle lack of a of project-specific cfgdefs.usage. --- 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