2021-02-04 19:55:58 +00:00
|
|
|
#!/bin/bash
|
2021-03-15 17:18:03 +00:00
|
|
|
|
2021-10-27 00:14:19 +00:00
|
|
|
# Update all the submodules and translations
|
|
|
|
./update_submodules.sh
|
2021-03-15 17:18:03 +00:00
|
|
|
|
2022-05-03 12:23:37 +00:00
|
|
|
yarn crawl
|
2023-10-30 17:29:50 +00:00
|
|
|
yarn update-donations
|
2022-05-03 12:23:37 +00:00
|
|
|
git add "src/shared/instance_stats.ts"
|
2023-10-30 17:29:50 +00:00
|
|
|
git add "src/shared/donation_stats.ts"
|
|
|
|
git commit -m "Crawl and donation instance statistics"
|
2022-05-03 12:23:37 +00:00
|
|
|
|
2021-04-21 12:02:41 +00:00
|
|
|
# look for unused translations
|
|
|
|
for langfile in joinlemmy-translations/translations/*.json; do
|
|
|
|
lang=$(basename $langfile .json)
|
|
|
|
if ! grep -q "\"./translations/$lang\"" src/shared/i18next.ts; then
|
|
|
|
echo "Unused language $lang"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2021-03-15 17:18:03 +00:00
|
|
|
new_tag="$1"
|
|
|
|
|
|
|
|
git tag $new_tag
|
|
|
|
git push origin $new_tag
|