From ef32d65ac1852da581ac75d20f903dbcb2d0b5cd Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Mon, 23 Mar 2026 20:52:55 +0100 Subject: Use meson as a build system --- justfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 justfile (limited to 'justfile') 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!' -- cgit