Enhance build script to work on MacOS
Summary
Currently the configure
script fails on MacOS (possibly also on Windows). One reason is that there are different tar
implementations available, with different sets of command line arguments.
Similar/same problems were reported for Windows.
Expected Behavior
It should simply run.
Actual Behavior
$ make test
mkdir -p dist
tar -czf dist/caosdb.tar.gz \
--exclude=.git* \
--exclude=env* \
--exclude=doc/_build_octave* \
--exclude=build* \
--exclude=.docker* \
--exclude=dist* \
--exclude=inst* \
--exclude-ignore-recursive=.gitignore \
--transform 's,^\.,caosdb,' .
tar: Option --exclude-ignore-recursive=.gitignore is not supported
Usage:
List: tar -tf <archive-filename>
Extract: tar -xf <archive-filename>
Create: tar -cf <archive-filename> [filenames...]
Help: tar --help
make: *** [dist/caosdb.tar.gz] Error 1
Steps to Reproduce the Problem
make test
Specifications
- Version:
origin/dev
84c6ac62 - Platform: MacOS
$ sw_vers ProductName: macOS ProductVersion: 11.6 BuildVersion: 20G165
Possible fixes
- Only use common tar options, or define separate options for separate versions.