diff --git a/tools/README.md b/tools/README.md new file mode 100644 index 000000000..9cecc03ac --- /dev/null +++ b/tools/README.md @@ -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`. diff --git a/tools/reset-submodules.sh b/tools/reset-submodules.sh old mode 100644 new mode 100755 index 6fdfe0bcd..ba99347a9 --- a/tools/reset-submodules.sh +++ b/tools/reset-submodules.sh @@ -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 diff --git a/tools/update-compatibility-list.sh b/tools/update-compatibility-list.sh new file mode 100755 index 000000000..1bbaa425e --- /dev/null +++ b/tools/update-compatibility-list.sh @@ -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 diff --git a/tools/update-translations.sh b/tools/update-translations.sh new file mode 100755 index 000000000..b93334905 --- /dev/null +++ b/tools/update-translations.sh @@ -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 \ No newline at end of file