aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
diff options
context:
space:
mode:
authorY. Wang <yw05@forksworld.de>2023-10-04 20:07:24 +0200
committerY. Wang <y5nw@protonmail.com>2024-11-04 17:17:51 +0100
commit425b0993d355b9f45ddd400bd4925f9f1a5bd34d (patch)
tree77a105e5bbf28c03e31c5c30e5866387d618e174 /.build.yml
parentbed66e0f901ae9f8e21675035f174292120fea4f (diff)
downloadadvtrains-425b0993d355b9f45ddd400bd4925f9f1a5bd34d.tar.gz
advtrains-425b0993d355b9f45ddd400bd4925f9f1a5bd34d.tar.bz2
advtrains-425b0993d355b9f45ddd400bd4925f9f1a5bd34d.zip
Autogenerate .tr files from .po files
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
index 135d1a5..c2332f2 100644
--- a/.build.yml
+++ b/.build.yml
@@ -6,6 +6,7 @@ packages:
- unzip
- wget
- lua-busted
+- luajit
sources :
- https://git.sr.ht/~gpcf/advtrains
@@ -40,3 +41,8 @@ tasks:
- run_test_world: |
echo "bind_address = 127.0.0.1" > minetest.conf
minetestserver --port 31111 --gameid minetest_game --config ~/minetest.conf --world ~/.minetest/worlds/advtrains_testworld --logfile ~/minetest.log
+- test_po_files : |
+ cd advtrains/advtrains
+ for f in po/*.po; do
+ luajit -e 'require("poconvert").from_string("advtrains", io.input():read("*a"))' < $f
+ done