tools: Added new tool scripts for updating translations and the compatibility list

Also added a brief readme file to the directory
This commit is contained in:
OpenSauce04 2025-04-26 17:29:31 +01:00
parent 4a34bcfcbf
commit 1d562cdd11
4 changed files with 24 additions and 0 deletions

5
tools/README.md Normal file
View file

@ -0,0 +1,5 @@
# Tools
This directory contains several scripts which are intended to both document and ease the convenience of certain development processes.
The scripts in this directory assume that your current working directory is the Azahar root directory and the script is being called via `./tools/xxx.sh`.

2
tools/reset-submodules.sh Normal file → Executable file
View file

@ -3,6 +3,8 @@
# SPDX-FileCopyrightText: 2024 yuzu Emulator Project
# SPDX-License-Identifier: MIT
# This script assumes that Git is installed
git submodule sync
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive

View file

@ -0,0 +1,9 @@
#!/bin/bash -ex
# This script assumes that Git is installed
cd ./dist/compatibility_list/
git fetch origin
git checkout master
git pull origin master
git checkout --detach

8
tools/update-translations.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash -ex
# This script assumes that the Transifex CLI and Qt Linquist CLI tools are installed
cd ./dist/languages/
tx pull -a -f
cd ../../
lupdate -recursive './src' -ts ./dist/languages/*.ts