diff --git a/.po2tl.sh b/.po2tl.sh index 63c0671..ea40f54 100755 --- a/.po2tl.sh +++ b/.po2tl.sh @@ -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