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:45 +0000
commit80ca01a53148636f30b8eeff97e87b515894dca2 (patch)
treef7e9e84e7222d651341867c03bceb1a0469c0123 /configure
parent70345bac56bd82f83cf9b57eb8e211637d8472c4 (diff)
downloadsbpython3-80ca01a53148636f30b8eeff97e87b515894dca2.tar.bz2
sbpython3-80ca01a53148636f30b8eeff97e87b515894dca2.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