summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-11-19 17:44:53 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-11-19 17:44:53 +0100
commit9af1d8cec35d09b00a7e453b4632058dc48835ec (patch)
treeffba55a5f965f5b8104e7bc9e8e5f2e9fe5cf1cd /tools
parent892e40c2dd1e3379e6bf08e997179394c0302bf1 (diff)
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.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/MocList6
1 files 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