* Update compat-data build script * Update generated data * Update fixtures * Use older --shallow-since (the last commit has 04-17 as the date)
21 lines
530 B
Bash
Executable File
21 lines
530 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
COMPAT_TABLE_COMMIT=9e07df3875d8416af85cf523716519e9dd1e5e44
|
|
GIT_HEAD=build/compat-table/.git/HEAD
|
|
|
|
if [ -d "build/compat-table" ]; then
|
|
cd build/compat-table
|
|
commit="$(git rev-parse HEAD)"
|
|
cd ../..
|
|
|
|
if [ $commit == $COMPAT_TABLE_COMMIT ]; then
|
|
exit 0
|
|
fi
|
|
fi
|
|
|
|
rm -rf build/compat-table
|
|
mkdir -p build
|
|
git clone --branch=gh-pages --single-branch --shallow-since=2020-04-01 https://github.com/kangax/compat-table.git build/compat-table
|
|
cd build/compat-table && git checkout -qf $COMPAT_TABLE_COMMIT
|