2022-04-22 10:18:21 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-12-20 11:38:58 +03:00
|
|
|
mkdir -p internal/frostfs/services/tree 2>/dev/null
|
2022-04-22 10:18:21 +03:00
|
|
|
|
2022-10-14 13:06:03 +03:00
|
|
|
REVISION="feaa9eace7098c343598bf08fb50746a1e8d2deb"
|
2022-04-22 10:18:21 +03:00
|
|
|
|
|
|
|
echo "tree service revision ${REVISION}"
|
|
|
|
|
2022-12-16 10:47:23 +03:00
|
|
|
FILES=$(curl -s https://github.com/TrueCloudLab/frostfs-node/tree/${REVISION}/pkg/services/tree | sed -n "s,.*\"/TrueCloudLab/frostfs-node/blob/${REVISION}/pkg/services/tree/\(.*\.pb\.go\)\".*,\1,p")
|
2022-04-22 10:18:21 +03:00
|
|
|
|
|
|
|
for file in $FILES; do
|
2022-05-18 16:39:26 +03:00
|
|
|
if [[ $file == *"neofs"* ]]; then
|
|
|
|
echo "skip '$file'"
|
|
|
|
continue
|
|
|
|
else
|
|
|
|
echo "sync '$file' in tree service"
|
|
|
|
fi
|
2022-12-20 11:38:58 +03:00
|
|
|
curl -s "https://raw.githubusercontent.com/TrueCloudLab/frostfs-node/${REVISION}/pkg/services/tree/${file}" -o "./internal/frostfs/services/tree/${file}"
|
2022-04-22 10:18:21 +03:00
|
|
|
done
|