This guide will demonstrate how to mirror an SVN into a Git repo. You're the target audience if you're an SVN user, just getting started with Git and need to coax your project team over to Git.
The branching scenario has been simplified for clarity.
| # Assuming this your tests/CMakeLists.txt (and your libs are setup in a root config) | |
| # Just make sure to include(CTest) in your *root* cmake config. | |
| # 3.9 adds support for "GoogleTest" which enumerates the tests inside | |
| # of the code and adds them to ctest. | |
| cmake_minimum_required(VERSION 3.9) | |
| # Configure google-test as a downloadable library. | |
| include(External_GTest.cmake) |
| #!/bin/bash | |
| sudo apt -y install checkinstall libhdf4-dev libhdf5-dev | |
| wget https://support.hdfgroup.org/ftp/HDF5/h4toh5/src/h4h5tools-2.2.3.tar.bz2 | |
| tar -xf h4h5tools-2.2.3.tar.bz2 | |
| cd h4h5tools-2.2.3 | |
| for f in $(rgrep -l 'include "hfile.h"' .); do sed -i 's/"hfile.h"/<hfile.h>/' $f; done | |
| for f in $(rgrep -l 'include "mfhdf.h"' .); do sed -i 's/"mfhdf.h"/<mfhdf.h>/' $f; done | |
| for f in $(rgrep -l 'include "hdf.h"' .); do sed -i 's/"hdf.h"/<hdf.h>/' $f; done | |
| CFLAGS='-lmfhdf -ldf -I/usr/include/hdf' ./configure --with-hdf5=/usr/lib/x86_64-linux-gnu/hdf5/serial | |
| make |