version_utils.sh: Fix locale-dependent sort order issues in read_source

This commit is contained in:
Jonathan G Rennison
2020-07-28 17:40:34 +01:00
parent a26eabc180
commit 8baa3756b3

View File

@@ -83,13 +83,13 @@ function read_source {
handle_source "CMakeLists.txt" "$1"
while IFS=$'\n' read -r line; do
handle_source "$line" "$1"
done < <( find -L cmake -type f -name '*.cmake' -print | sort )
done < <( find -L cmake -type f -name '*.cmake' -print | LC_ALL=C sort )
while IFS=$'\n' read -r line; do
handle_source "$line" "$1"
done < <( find -L src -type f \( -name 'CMakeLists.txt' -o -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' -o -name '*.sq' -o -name '*.mm' -o -name '*.in' \) -print | sort )
done < <( find -L src -type f \( -name 'CMakeLists.txt' -o -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' -o -name '*.sq' -o -name '*.mm' -o -name '*.in' \) -print | LC_ALL=C sort )
while IFS=$'\n' read -r line; do
handle_source "$line" "$1"
done < <( find -L src/lang -type f -name '*.txt' -print | sort )
done < <( find -L src/lang -type f -name '*.txt' -print | LC_ALL=C sort )
}
if [ -z "$HASH" -a -z "$NAMES" -a -z "$HASHLIST" -a -z "$TESTOK" -a -z "$WRITE" -a -z "$RELEASETAG" ]; then