From cded2f8b9f6ed9c477748d56dd0b6b53943df81b Mon Sep 17 00:00:00 2001 From: Burt P Date: Wed, 12 Jul 2017 23:16:00 -0500 Subject: updatepo.sh: sort output of find, use more logical search order An attempt to make updatepo.sh generate hardinfo.pot and .po files that are the same regardless of the machine, so that diffs are less noisy and more useful. Signed-off-by: Burt P --- po/updatepo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/po/updatepo.sh b/po/updatepo.sh index d1d3c427..1825d696 100644 --- a/po/updatepo.sh +++ b/po/updatepo.sh @@ -11,12 +11,12 @@ fi mv hardinfo.pot hardinfo.pot.old echo "" > hardinfo.pot # empty existing file to join (-j) with -for d in shell/ modules/ hardinfo/; +for d in hardinfo/ shell/ modules/; do # work form hardinfo root to get reasonable file reference comments cd .. echo -n `pwd`; echo "/$d ..." - find "$d" -type f -name "*.c" -print | xargs xgettext -j -d hardinfo -o "$DER/hardinfo.pot" -k_ -kN_ -kC_:1c,2 -kNC_:1c,2 -c/ --from-code=UTF-8 + find "$d" -type f -name "*.c" -print | sort | xargs xgettext -j -d hardinfo -o "$DER/hardinfo.pot" -k_ -kN_ -kC_:1c,2 -kNC_:1c,2 -c/ --from-code=UTF-8 cd "$DER" done; -- cgit v1.2.3