summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-03 20:02:52 +0000
committermidipix <writeonce@midipix.org>2024-02-03 20:07:44 +0000
commit7dec8ca0af32eae08ad6d2fa3b93731e5f9260de (patch)
tree24b8459a55abd2d623458ca4d0a02c30c4c5d35c /configure
parentc0c2b4ef057ab6ee12b4e6d6e7b53d10efd6cdb0 (diff)
downloadbautomake-7dec8ca0af32eae08ad6d2fa3b93731e5f9260de.tar.bz2
bautomake-7dec8ca0af32eae08ad6d2fa3b93731e5f9260de.tar.xz
build system: usage(): handle lack of a of project-specific cfgdefs.usage.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
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