From 1f827954f171df7626c49bfe75c7bd45b9d0bfb2 Mon Sep 17 00:00:00 2001 From: midipix Date: Feb 03 2024 20:07:45 +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