Revision f87082b403f5b5e44b1d28dba038ba85d28f417b authored by Lars Bilke on 20 September 2021, 13:23:26 UTC, committed by Lars Bilke on 20 September 2021, 13:23:26 UTC
[cmake] Make git optional. See merge request ogs/ogs!3783
archive-testdata.sh
#!/bin/bash
if [[ $OSTYPE == darwin* ]]; then
find ./Tests/Data -not -name "*.md5-stamp" -not -name "*expected*" -not -type d -exec bash -c 'mkdir -p ./tmp/`dirname {}`' \; -exec bash -c 'cp `grealpath {}` ./tmp/{}' \;
else
find ./Tests/Data -not -name "*.md5-stamp" -not -name "*expected*" -not -type d -exec bash -c 'mkdir -p ./tmp/`dirname {}`' \; -exec bash -c 'cp `realpath {}` ./tmp/{}' \;
fi
pushd . > /dev/null
cd ./tmp/Tests/Data
tar zcf ogs6-data.tar.gz ./*
mv ogs6-data.tar.gz ../../../
zip -r -q ogs6-data .
mv ogs6-data.zip ../../../
popd > /dev/null
rm -rf tmp/
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...