mirror of
https://github.com/pretix/pretix-servicefees.git
synced 2024-12-27 05:23:07 +01:00
37 lines
579 B
Bash
Executable file
37 lines
579 B
Bash
Executable file
#!/bin/sh
|
|
COMPONENTS=pretix/pretix-plugin-service-fees
|
|
DIR=pretix_servicefees/locale
|
|
# Renerates .po files used for translating the plugin
|
|
set -e
|
|
set -x
|
|
|
|
# Lock Weblate
|
|
for c in $COMPONENTS; do
|
|
wlc lock $c;
|
|
done
|
|
|
|
# Push changes from Weblate to GitHub
|
|
for c in $COMPONENTS; do
|
|
wlc commit $c;
|
|
done
|
|
|
|
# Pull changes from GitHub
|
|
git pull --rebase
|
|
|
|
# Update po files itself
|
|
make localegen
|
|
|
|
# Commit changes
|
|
git add $DIR/*/*/*.po
|
|
git add $DIR/*.pot
|
|
|
|
git commit -s -m "Update po files
|
|
[CI skip]"
|
|
|
|
# Push changes
|
|
git push
|
|
|
|
# Unlock Weblate
|
|
for c in $COMPONENTS; do
|
|
wlc unlock $c;
|
|
done
|