Skip to content

Commit

Permalink
build(docker): support Git Bash execution without rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Feb 27, 2024
1 parent 4f6e921 commit 835794b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/docker/itk-wasm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ exe=$(ociExe)
cd $script_dir

mkdir -p ITKWebAssemblyInterfaceModuleCopy
rsync -a ../../../{include,CMakeLists.txt,itk-module.cmake} ./ITKWebAssemblyInterfaceModuleCopy/
rsync -a ../../../src/{*.cxx,CMakeLists.txt} ./ITKWebAssemblyInterfaceModuleCopy/src/
rsync -a ../../../src/emscripten-module ./ITKWebAssemblyInterfaceModuleCopy/src/
cp_exe=$(which rsync 2>/dev/null || which cp)
$cp_exe -a ../../../{include,CMakeLists.txt,itk-module.cmake} ./ITKWebAssemblyInterfaceModuleCopy/
$cp_exe -a ../../../src/{*.cxx,CMakeLists.txt} ./ITKWebAssemblyInterfaceModuleCopy/src/
$cp_exe -a ../../../src/emscripten-module ./ITKWebAssemblyInterfaceModuleCopy/src/
mkdir -p median-filter-pipelineCopy
rsync -a ../../../packages/core/typescript/itk-wasm/test/pipelines/median-filter-pipeline/{CMakeLists.txt,median-filter-test.cxx} ./median-filter-pipelineCopy
$cp_exe -a ../../../packages/core/typescript/itk-wasm/test/pipelines/median-filter-pipeline/{CMakeLists.txt,median-filter-test.cxx} ./median-filter-pipelineCopy

TAG=$(date '+%Y%m%d')-$(git rev-parse --short HEAD)
VCS_REF=$(git rev-parse --short HEAD)
Expand Down

0 comments on commit 835794b

Please sign in to comment.