MB-System is an open source software package for the processing and display of bathymetry and backscatter imagery data derived from multibeam, interferometry, and sidescan sonars.
This change set addresses issues with the mbcmake.sh script on macOS and linux:
boolean options have an extra '=1' appended (buildTRN=1=1), causing cmake errors
boolean values are always assigned true
cmake boolean options require ON/OFF instead of 0/1
bash throws errors when trying to assign boolean options;
bash interprets the assignment as an invalid command due,
but can't be wrapped in extra quotes that will cause them to be unrecognized by cmake.
verbose option is not handled and causes mbcmake.sh to exit with an error
In this version:
Use an option array to eliminate parsing errors
Use ON/OFF for boolean values (e.g. in help message)
Boolean value assignment accepts value provided on command line
Add a handler for verbose option
Tested using macOS Monterey bash 5.2.9 and Ubuntu 22.04 bash 5.1.16
This change set addresses issues with the mbcmake.sh script on macOS and linux:
In this version: Use an option array to eliminate parsing errors Use ON/OFF for boolean values (e.g. in help message) Boolean value assignment accepts value provided on command line Add a handler for verbose option
Tested using macOS Monterey bash 5.2.9 and Ubuntu 22.04 bash 5.1.16