Re: RFC: Sort tarballs created by the src-release.sh script

Nick Clifton via Gdb-patches
2022-09-28T13:35:13Z

Hi Andreas,

> Better set LC_ALL=C to be independent from the locale sorting.
Like this ?

diff --git a/src-release.sh b/src-release.sh
index 079b545ae7c..8c2a8d897fd 100755
--- a/src-release.sh
+++ b/src-release.sh
@@ -185,7 +185,7 @@ do_tar()
echo "==> Making $package-$ver.tar"
rm -f $package-$ver.tar
find $package-$ver -follow \( $CVS_NAMES \) -prune \
- -o -type f -print \
+ -o -type f -print | LC_ALL=C sort \
| tar cTfh - $package-$ver.tar
}

Cheers
Nick

PS. Would sort's --dictionary-order option have a similar effect ?