aboutsummaryrefslogtreecommitdiff
path: root/justfile
blob: 37ddc014fb52cbde4b67586bb12a967508c05fd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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!'