diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-03-23 20:52:55 +0100 |
|---|---|---|
| committer | Rubén Beltrán del Río <jj@r.bdr.sh> | 2026-04-05 00:31:21 +0200 |
| commit | ef32d65ac1852da581ac75d20f903dbcb2d0b5cd (patch) | |
| tree | 98cdb79c471babd906368d23171fe10168c18062 /justfile | |
| parent | dae5942e2ad1ac59f6217ad0f8e0bd630d0b4747 (diff) | |
Use meson as a build system
Diffstat (limited to 'justfile')
| -rw-r--r-- | justfile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/justfile b/justfile new file mode 100644 index 0000000..37ddc01 --- /dev/null +++ b/justfile @@ -0,0 +1,14 @@ +# Build ######################################################################## +build: + meson setup _build + meson compile -C _build + +# Internationalization / Localization ########################################## + +# Finds all files that can be translated and adds them to the POTFILES +find_translatable_files: + find ./ -not -path '*/.*' -type f -name "*.rs" -exec grep -l "tr!(\"\|gettext" {} \; | sed 's|^\./||' | sort > po/POTFILES + find ./data -not -path '*/.*' -name "*.in.in" -type f | sed 's|^\./||' | sort >> po/POTFILES + +extract_strings: find_translatable_files + @xgettext --files-from=po/POTFILES --output=po/systems.tranquil.Map.pot --from-code=UTF-8 --add-comments --keyword='tr!' |