Licensing

This commit is contained in:
HackerNCoder 2023-02-11 03:31:58 +01:00
parent 9f342d4aa6
commit e214720f13

View file

@ -1,4 +1,6 @@
#!/usr/bin/env bash
#SPDX-FileCopyrightText: 2023 HackerNCoder
#SPDX-License-Identifier: MIT-0
declare -A langnames=( ["es_419"]="spanish" ["pt_BR"]="brazilian_portuguese" ["ru"]="russian" ["pl"]="polish" )
@ -28,8 +30,8 @@ for file in ./translations-*.po; do
echo -e "\x1B[36mBUILDING $file \x1B[0m"
msgfmt "$file" -o game.mo
echo "\t$(PATH=$(pwd)/renpy:${PATH} RENPY_DIR=$(pwd)/renpy python3 rttk-queerscriptors/mo2tl.py $(pwd)/game-source game.mo ${lang})"
echo "\t$(zip "${lang}.zip" game-source/game/tl/${lang}/*)"
PATH=$(pwd)/renpy:${PATH} RENPY_DIR=$(pwd)/renpy python3 rttk-queerscriptors/mo2tl.py $(pwd)/game-source game.mo ${lang}
zip "${lang}.zip" game-source/game/tl/${lang}/*
mv "${lang}.zip" "/var/www/queer/build/${CI_REPO_NAME}/${lang}.zip"
echo -e "\e[32mFINISHED $file\e[0m"
done