From 87d810254cd9606eec02c2592f999e9e277a92ba Mon Sep 17 00:00:00 2001 From: Oneric Date: Sat, 29 Apr 2023 01:04:13 +0200 Subject: [PATCH] po/make_pot: sort lua files in POT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit find may output matching files in any order. To avoid unnecessary changes between regeneration sort its output. For C++ sources xgettext’s --sort-by-file already has an equivalent effect. All other files are already statically listed in a fixed order. Adopts part of: https://github.com/wangqr/Aegisub/commit/4aee271d034f5f0a47863594f07ef4d172ecc4f4 --- po/make_pot.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/po/make_pot.sh b/po/make_pot.sh index da9748c41..04e273168 100755 --- a/po/make_pot.sh +++ b/po/make_pot.sh @@ -35,6 +35,7 @@ grep '"[A-Za-z ]\+" : {' -n ../src/libresrc/default_hotkey.json \ | maybe_append find ../automation -name *.lua \ + | LC_ALL=C sort \ | xargs grep tr\"[^\"]\*\" -o -n \ | sed 's/\(.*\):\([0-9]\+\):tr\(".*"\)/\1|\2|\3/' \ | sed 's/\\/\\\\\\\\/g' \