aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-07-12 23:16:00 -0500
committerLeandro Pereira <leandro@hardinfo.org>2017-07-19 07:20:33 -0700
commitcded2f8b9f6ed9c477748d56dd0b6b53943df81b (patch)
treeda2955969573d34f23f3db68b2a2ad5dfe3f48c1
parent86392b019dc32bcf2dc63bad246bd1558f459b04 (diff)
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 <pburt0@gmail.com>
-rw-r--r--po/updatepo.sh4
1 files 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;