From 9af1d8cec35d09b00a7e453b4632058dc48835ec Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 19 Nov 2015 17:44:53 +0100 Subject: Fix reproducibility by sorting first on Moclist.h After grepping "Q_OBJECT", sort the files so the result is deterministic. Use locale C so there isn't differences between machines with different locale in the sorting. --- tools/MocList | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/MocList b/tools/MocList index 639b668..8111e37 100755 --- a/tools/MocList +++ b/tools/MocList @@ -1,9 +1,9 @@ # -*- mode: shell-script; sh-shell: bash; sh-indentation: 2 -*- if [ "$1" = "cc" ]; then - grep "Q_OBJECT" *.h | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.cc/g'| xargs echo; + grep "Q_OBJECT" *.h | LC_ALL=C sort | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.cc/g'| xargs echo; elif [ "$1" = "o" ]; then - grep "Q_OBJECT" *.h | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.o/g'| xargs echo; + grep "Q_OBJECT" *.h | LC_ALL=C sort | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.o/g'| xargs echo; elif [ "$1" = "h" ]; then - grep "Q_OBJECT" *.h | cut -d: -f1 | cut -d'/' -f3 | xargs echo; + grep "Q_OBJECT" *.h | LC_ALL=C sort | cut -d: -f1 | cut -d'/' -f3 | xargs echo; fi -- cgit v1.2.3