With GNU sort 2.0 (which ships with Mandrake 7.2), the -g makes
a difference in the sinclude order (which I assume is an intended
difference which I have just broken).
With GNU sort 1.2 (which ships with RedHat 6.0), the -g is accepted
but is not documented and makes no difference in the result. Thus
systems with GNU sort 1.2 were broken before and are still broken
with respect to the order of the sinclude statements.
With OS/390, Tru64, Solaris, and now I think AIX, -g was not accepted
at all by sort so the output of this was broken and Apache would not
build.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87554
13f79535-47bb-0310-9956-
ffa450edef68
for configfiles in `find . -name "config*.m4" | \
sed 's#\(.*\)\/config\(.*\)\.m4#\2config.m4\1#' | \
- sort -g | \
+ sort | \
sed 's#\(.*\)config.m4\(.*\)#\2/config\1.m4#g'`; do
if [ -r $configfiles ]; then
echo "sinclude($configfiles)"